06.08.2013 Views

pSOSystem System Calls - Read

pSOSystem System Calls - Read

pSOSystem System Calls - Read

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

chmod_f pHILE+ <strong>System</strong> <strong>Calls</strong><br />

chmod_f Changes the mode of a named file.<br />

#include <br />

unsigned long chmod_f(<br />

char *name, /* file pathname */<br />

int mode /* new file mode */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

NFS formatted volumes.<br />

chmod_f() changes mode of the named ordinary or directory file.<br />

name Points to a null-terminated pathname of a file.<br />

mode Specifies the new file mode. mode is the result of an OR operation<br />

performed on the following constants (defined in ).<br />

Mnemonic Description<br />

S_ISUID Set user ID on execution.<br />

S_ISGID Set group ID on execution.<br />

S_ISVTX Save text image after execution (sticky bit.)<br />

S_IREAD <strong>Read</strong> permission, owner.<br />

S_IWRITE Write permission, owner.<br />

S_IEXEC Execute/search permission, owner.<br />

S_IRGRP <strong>Read</strong> permission, group.<br />

S_IWGRP Write permission, group.<br />

S_IXGRP Execute/search permission, group.<br />

S_IROTH <strong>Read</strong> permission, other.<br />

S_IWOTH Write permission, other.<br />

S_IXOTH Execute/search permission, other.<br />

2-16 <strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!