Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

System Functions (n - p) open64(2)
[EEXIST] The O_CREAT and O_EXCL flags are set, and the named file exists.
[EFAULT] The path parameter is an invalid address.
[EFILEBAD] One of these conditions exists:
The function call attempted to open a Guardian EDIT file, but the struc-
ture of the file is bad.
The function call attempted to open a Guardian EDIT file, but the cor-
rupted flag is set in the file label.
[EFSBAD] The fileset catalog for one of the filesets involved in the operation is corrupt.
[EGUARDIANOPEN]
The function call attempted to open a Guardian EDIT file for write access or for
Guardian shared or exclusive exclusion access, but the file has already been
opened with a Guardian procedure call.
[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 specified the O_CREAT flag but did not specify the
mode parameter.
The O_CREAT flag is set and bits other than the file permission and
appropriate file type flags are set in the mode parameter.
Both the O_TRUNC flag and O_RDONLY ag are set.
None of the access flags O_RDONLY, O_WRONLY,orO_RDWR are
set.
The function call attempted to create a Guardian file (that is, a file in the
/G le system), but the pathname cannot be mapped to a valid Guardian
lename.
The function call attempted to open a Guardian file of a type other than
those permitted.
The function call attempted to create a Guardian temporary file.
[EIO] A physical input or output error occurred. The device where the file is stored
might be in the down state, or both processors that provide access to the device
might have failed.
Data might have been lost during transfer.
[EISDIR] One of these conditions exists:
The named file is an OSS directory, and write access is requested.
527186-023 Hewlett-Packard Company 523