mkdir (dirname, mode)
This function creates a new sub-directory whose path-name is dirname. The file permissions for the new sub-directory are determined from the mode argument. Valid modes are summarized here.
Table 12. User/owner permission modes
| Text format | Octal format | Meaning |
|---|---|---|
| S_IRWXU | 0o7 | Read, write, execute/search |
| S_IRUSR | 0o4 | Read permission |
| S_IWUSR | 0o2 | Write permission |
| S_IXUSR | 0o1 | Execute/search permission |
Table 13. Group permission modes
| Text format | Octal format | Meaning |
|---|---|---|
| S_IRWXG | 0o7 | Read, write, execute/search |
| S_IRGRP | 0o4 | Read permission |
| S_IWGRP | 0o2 | Write permission |
| S_IXGRP | 0o1 | Execute/search permission |
Table 14. Other permission modes
| Text format | Octal format | Meaning |
|---|---|---|
| S_IRWXO | 0o7 | Read, write, execute/search |
| S_IROTH | 0o4 | Read permission |
| S_IWOTH | 0o2 | Write permission |
| S_IXOTH | 0o1 | Execute/search permission |
Miscellaneous permissions.
These flags are bitwise OR-ed together to get the desired mode.
Error constants for this function:
Copyright © 1995-2012 by Cogent Real-Time Systems, Inc. All rights reserved.