Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (k - m) mkdir(2)
• The path parameter specifies a file on a remote HP NonStop node but
communication with the remote node has been lost.
[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.
[EROFS] The named file resides on a read-only fileset.
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 define. The following
features are affected in the HP implementation:
• If bits in the mode parameter other than the file 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 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.
The following are extensions to the XPG4 Version 2 specification:
• The errno values [EFAULT], [EFSBAD], [EINVAL], [EIO], [ENOROOT], [ENXIO],
[EOSSNOTRUNNING], and [EPERM] can be returned.
527186-003 Hewlett-Packard Company 4−25