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> make_dir<br />

make_dir Creates a directory file.<br />

#include <br />

unsigned long make_dir(<br />

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

unsigned long mode /* access permissions */<br />

)<br />

Volume Types<br />

Description<br />

Arguments<br />

All volume types, except CD-ROM; however, mode is only meaningful for NFS<br />

volumes.<br />

make_dir() creates a new directory file.<br />

name Points to the null-terminated pathname of the directory file to<br />

create.<br />

mode For NFS volumes only, specifies the access modes associated with<br />

the file and is the result of an OR operation performed on the<br />

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_IRUSR <strong>Read</strong> permission, owner.<br />

S_IWUSR Write permission, owner.<br />

S_IXUSR 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 />

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

2

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

Saved successfully!

Ooh no, something went wrong!