/Anonimizzato13739Utente anonimizzato06 mag 2014, 16:45Salve, qualcuno può spiegarmi l'uso del mode nella sintassi delle due funzioni? int creat(char nomefile[], int mode); int open(char nomefile[],int flag, [int mode]);
OoregonSuper FamosoIscritto danov, 2011Messaggi2191706 mag 2014, 16:54Se conosci i permessi Unix/Linux ... mode required if file is created, ignored otherwise. mode specifies the protection bits, e.g. 0644 = rw-r--r-- There are also highly un-memorable named constants if <sys/stat.h> is included, they may be added together in any combination: S_IRUSR Owner may read S_IWUSR Owner may write S_IXUSR Owner may execute S_IRGRP Members of group may read S_IWGRP Members of group may write S_IXGRP Members of group may execute S_IROTH Others may read S_IWOTH Others may write S_IXOTH Others may execute
/Anonimizzato13739Utente anonimizzato06 mag 2014, 17:08Sono tutti questi i vari ''mode'' o ce ne sono anche altri?