Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (k - m) mkdir(2)
The path parameter species a le on a remote HP NonStop node but
communication with the remote node has been lost.
[ENOROOT] One of the following conditions exists:
The root leset of the local node (leset 0) is not in the STARTED state.
The current root leset for the specied le is unavailable. The OSS
name server for the leset might have failed.
The specied le is on a remote HP NonStop node and communication
with the remote name server has been lost.
[ENOSPC] The leset does not contain enough space to hold the contents of the new direc-
tory or to extend the parent directory of the new directory.
[ENOTDIR] A component of the pathname prex is not a directory.
[ENXIO] The leset containing the clients current working directory or root directory is
not mounted.
[EOSSNOTRUNNING]
The program attempted an operation on an object in the OSS environment while
a required system process was not running.
[EPERM] One of the following conditions is true:
The call attempted to create a directory named lost+found in the root
directory of an OSS leset, or attempted to create a directory named
/dev, /dev/tty,or/dev/null in the the root directory of the OSS le sys-
tem.
The call attempted to create a subvolume directory in /G (the Guardian
le system) that has a name beginning with ZYQ.
The call attempted to create a le in the /E directory.
[EROFS] The named le resides on a read-only leset.
RELATED INFORMATION
Functions: chmod(2), mknod(2), rmdir(2), umask(2).
Commands: chmod(1), mkdir(1).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. The following
features are affected in the HP implementation:
If bits in the mode parameter other than the le permission bits, S_ISVTX, S_IFDIR,or
S_NONSTOP are set, mkdir() fails and sets errno to [EINVAL].
The group ID is set to the group ID of the parent directory if the S_ISGID ag is set in
the parent directory; otherwise, the group ID is set to the effective group ID of the calling
process. Directories within /G (the Guardian le system) are the exception; for them, the
group ID is set to 255.
The following are extensions to the XPG4 Version 2 specication:
The errno values [EFAULT], [EFSBAD], [EINVAL], [EIO], [ENOROOT], [ENXIO],
[EOSSNOTRUNNING], and [EPERM] can be returned.
527186-003 Hewlett-Packard Company 425