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.

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

fchmod_f Changes the mode of a file specified by its file identifier.<br />

#include <br />

unsigned long fchmod_f(<br />

unsigned long fid, /* file identifier */<br />

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

)<br />

Volume Types<br />

Description<br />

Arguments<br />

NFS formatted volumes.<br />

fchmod_f() functions the same as chmod_f() except that fchmod_f() changes<br />

the mode of a file by its file identifier instead of its pathname. The file identifier is<br />

first obtained with open_f().<br />

fid Specifies the file identifier associated with the 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 />

<strong>pSO<strong>System</strong></strong> <strong>System</strong> <strong>Calls</strong> 2-29<br />

2

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

Saved successfully!

Ooh no, something went wrong!