Open System Services System Calls Reference Manual (G06.28+, H06.05+)

System Functions (n - p) open64(2)
The open fails if any of these conditions is true:
The le supports enforced record locks, and another process has locked a
portion of the le.
The le does not allow write access.
The oag parameter also species the O_RDONLY ag.
If the oag parameter also species the O_SYNC ag, the truncation is a syn-
chronous update.
A program can request some control over when updates should be made per-
manent for a regular le opened for write access.
The le status ags that dene the initial state of the open le are:
O_APPEND Open the le only for append access. If set, the le pointer is set to the end of
the le before each write.
This ag is ignored for Telserv terminal devices.
O_NONBLOCK
Open the le for nonblocked access. If set, the call to open64() does not block,
and subsequent read() or write() operations on the le are nonblocking.
When opening a regular disk le or an OSS directory, the O_NONBLOCK ag
is ignored.
Calling the open64() function with the O_NONBLOCK ag for FIFO les and
for character special devices that support nonblocking opens is supported.
Calling the open64() function with the O_NONBLOCK ag is supported for
Telserv terminal devices (tty) as listed:
For a static window, the open operation is always allowed; it nishes
when the connection is established.
For a dynamic window, the open operation is allowed only if a connec-
tion is already established.
Calling the open64() function with the O_NONBLOCK ag is supported for
OSSTTY terminal devices (ztty). OSSTTY devices support only three static
windows, one each for #stdin, #stdout, and #stderr.
O_SYNC The O_SYNC ag provides a high level of data integrity for writes to regular |
les. For HP NonStop systems, you can use the OSS Monitor to select one of |
multiple levels of fault tolerance. For more information, see the discussion of the |
FTIOMODE attribute in the Open System Services Management and Operations |
Guide.
General Notes on oag Parameter Flag Values
527186-007 Hewlett-Packard Company 517