Open System Services System Calls Reference Manual (G06.27+, H06.04+)
mkdir(2) OSS System Calls Reference Manual
ERRORS
If any of the following conditions occurs, the directory is not created and the mkdir() function
sets errno to the corresponding value:
[EACCES] Creating the requested directory requires writing in a directory with a mode that
denies write permission, or search permission is denied on the parent directory of
the directory to be created.
[EEXIST] The named file already exists.
[EFAULT] The path parameter is an invalid address.
[EFSBAD] The fileset catalog for one of the filesets involved in the operation is corrupt.
[EINVAL] One of the following conditions exists:
• The program supplied an invalid value for the mode parameter.
• The pathname supplied in the call attempts to create a directory in the
Guardian file system, but the pathname cannot be mapped to a valid
Guardian subvolume name.
[EIO] A physical input or output error has occurred.
[ELOOP] Too many symbolic links were encountered in translating path.
[ENAMETOOLONG]
One of the following is too long:
• The pathname pointed to by the path parameter
• A component of the pathname pointed to by the path parameter
• The intermediate result of pathname resolution when a symbolic link is
part of the path parameter
The pathconf( ) function can be called to obtain the applicable limits.
[ENOENT] One of the following is true:
• A component of the prefix of the pathname pointed to by the path param-
eter does not exist.
• The path parameter points to an empty string.
• The path parameter names a symbolic link, but the file to which it refers
does not exist.
• 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.
4−24 Hewlett-Packard Company 527186-004