Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (k - m) mkdir(2)
[ENOROOT] One of the following conditions exists:
• The root fileset of the local node (fileset 0) is not in the STARTED state.
• The current root fileset for the specified file is unavailable. The OSS
name server for the fileset might have failed.
• The specified file is on a remote HP NonStop node and communication
with the remote name server has been lost.
[ENOSPC] The fileset 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 prefix is not a directory.
[ENXIO] The fileset containing the client’s 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 fileset, or attempted to create a directory named
/dev, /dev/tty,or/dev/null in the the root directory of the OSS file sys-
tem.
• The call attempted to create a subvolume directory in /G (the Guardian
file system) that has a name beginning with ZYQ.
• The call attempted to create a file in the /E directory.
• The program attempted an operation on a SEEP-protected fileset. Valid
for J06.15 and later J-series RVUs, and H06.26 and later H-series RVUs.
[EROFS] The named file resides on a read-only fileset.
RELATED INFORMATION
Commands: chmod(1), getacl(1), mkdir(1), setacl(1).
Functions: acl(2), chmod(2), mknod(2), rmdir(2), umask(2).
Miscellaneous topics: acl(5).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to define. The following
features are affected in the HP implementation:
• If bits in the mode parameter other than the file permission bits, S_ISVTX,orS_IFDIR
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 flag 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 file system) are the exception; for them, the
group ID is set to 255.
527186-023 Hewlett-Packard Company 4−51