Open System Services System Calls Reference Manual (G06.25+, H06.03+)

System Functions (n - p) open(2)
RELATED INFORMATION
Functions: chmod(2), close(2), creat(2), fcntl(2), lseek(2), mknod(2), read(2), stat(2),
umask(2), write(2).
STANDARDS CONFORMANCE
The POSIX standards leave some features to the implementing vendor to dene. These features
are affected in the HP implementation:
The O_RDWR ag is supported for FIFO les.
The group ID of the new le is determined by the value of the O_ISGID ag in the
parent directory.
The O_NONBLOCK ag is ignored for regular disk les and directory les.
The O_NOCTTY ag is ignored for regular disk les and directory les.
The O_CREAT ag is ignored for FIFOs and tty les.
If the O_CREAT ag is specied and bits other than the le permission and appropriate
le type ags are set in the mode parameter, errno is set to [EINVAL].
If the O_TRUNC ag is specied and the O_RDONLY access ag is specied, the open
fails.
The O_TRUNC ag is ignored for les other than regular les.
Attempting to open an OSS directory with an access ag of O_WRONLY or O_RDWR
fails.
Specifying the O_NONBLOCK ag when opening character special devices that sup-
port nonblocking opens is supported.
HP extensions to the XPG4 Version 2 specication are:
Opening Guardian les (that is, les in the /G le system) is supported, as described
under Opening Guardian Files in DESCRIPTION.
The errno values [EFAULT], [EFILEBAD], [EFSBAD], [EGUARDIANOPEN], [EIO],
[ELOOP], [ENETDOWN], [EOSSNOTRUNNING], and [EPERM] can be returned.
The le type S_NONSTOP is supported.
527186-003 Hewlett-Packard Company 513