Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (a - d) creat(2)
[EINTR] A signal was caught during the open operation. This value is returned only for
character special files (terminal devices) and for FIFO special files.
[EINVAL] One of these conditions exists:
• The call attempted to create a directory named lost+found in the root
directory of an OSS fileset, or it attempted to create a directory named
/dev, /dev/tty,or/dev/null in the root directory of the OSS file system.
• The function call did not specify the mode parameter.
• Bits other than the file permission and appropriate file-type flags are set
in the mode parameter.
• The function attempted to create a Guardian file (that is, a file in the /G
file system), but the pathname cannot be mapped to a valid Guardian
disk file name.
• The function attempted to open a Guardian file (that is, a file in the /G
file system) of a type other than those permitted.
• The function attempted to create a Guardian temporary file.
[EIO] A physical input or output error occurred. Data might have been lost during
transfer.
[EISDIR] One of these conditions exists:
• The named file is an OSS directory.
• The named file is a Guardian directory (/G or a directory in the /G file
system).
[ELOOP] Too many symbolic links were encountered in translating the path parameter.
[EMFILE] The system limit for open file descriptors per process has reached the maximum
permitted.
[ENAMETOOLONG]
One of these 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 these conditions exists:
• The pathname prefix does not exist.
• The path parameter points to an empty string.
527186-003 Hewlett-Packard Company 1−35