Creates a new directory.
#include <sys/stat.h> int mkdir ( const char *pathname, mode_t mode);
(IN) Points to the path for the new directory (either relative to the current working directory or an absolute pathname).
(IN) Specifies the permission mode for the directory (see File Access Modes and NetWare Attributes).
If successful, returns 0. Otherwise, returns -1 and sets errno to one of the following:
The newly created directory must be an empty directory.
On NetWare file systems, the caller must have Create rights in the parent directory. The inherited rights mask for the new directory is ALL rights. You can use the mode parameter to set NetWare directory attributes.