|
|
HP-UX Reference > Mmkdir(2)HP-UX 11i Version 2: December 2007 Update |
|
NAMEmkdir() — make a directory file DESCRIPTIONThe mkdir() system call creates a new directory file named by path. The file permission bits of the new directory are initialized from mode, and are modified by the process's file mode creation mask. For each bit set in the process's file mode creation mask, the corresponding bit in the new directory's mode is cleared (see umask(2)). The directory's owner ID is set to the process's effective-user-ID. If the set-group-ID bit of the parent directory is set, the directory's group ID is set to the group ID of the parent directory. Otherwise, the directory's group ID is set to the process's effective-group-ID. The set-group-ID bit of the new directory is set to the same value as the set-group-ID bit of the parent directory. Symbolic constants defining the access permission bits are found in the <sys/stat.h> header and are used to construct the argument mode. The value of the argument mode is the bitwise inclusive OR of the values of the desired permissions.
Access Control Lists - HFS File Systems OnlyOn HFS file systems implementing access control lists, the directory is created with three base ACL entries, corresponding to the file access permission bits (see acl(5)). Access Control Lists - JFS File Systems OnlyOn JFS file systems that support access control lists, optional ACL entries are created corresponding to the parent directory's default ACL entries. Also, the parent directory's default ACL entries are copied as the new directory's default ACL entries (see aclv(5)). RETURN VALUEmkdir() returns one of the following values:
ERRORSIf mkdir() fails, no directory is created and errno is set to one of the following values:
|
|