int mkdir(const char *pathname, mode_t mode);
The directory's user ID is set to the process' effective user ID. The directory's group ID is set to the group ID of the parent directory or to the effective group ID of the process.
The newly-created directory is an empty directory.
Upon successful completion,
Specifies the name of the new directory. The path name can be absolute or relative. If the specified path name is relative, the directory is created based upon your current working directory.
Is a bitwise-OR field that specifies what permissions the directory has when it is created.
Search permission is denied on a component of the path name prefix or write permission is denied on the parent directory of the directory to be created.
The named file already exists.
pathname is an invalid pointer.
While accessing the file system, an I/O error occurred.
The link count of the parent directory exceeds LINK_MAX.
The length of the pathname parameter exceeds PATH_MAX or a path name component is longer than NAME_MAX.
A component of the path name prefix does not exist or is a null path name.
The file system does not contain enough space to hold the contents of the new directory or to extend the parent directory of he new directory.
A component of the path name prefix is not a directory.
The parent directory of the directory being created resides on a read-only file system.
Directory names are treated as multibyte sequences and are converted to UNICODE
before passing to Win32. The conversion is either performed based on the
current thread locale, set using
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Professional Developers 64-Bit Edition
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
PTC MKS Toolkit 10.2 Documentation Build 28.