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

open(2) OSS System Calls Reference Manual
If the O_NONBLOCK ag is set, the open() function returns without waiting for the
device to be ready or available. Subsequent behavior of the device is device-specic.
When opening a directory, the open fails, and errno is set to [EISDIR], if either of these condi-
tions is true:
The directory is /E or /G (the Guardian le system) or a directory within /G.
The directory is not /E or /G and is not within /E or /G, and the le access ag is either
O_WRONLY or O_RDWR.
File Type Flags
The le type ags that can be logically ORed into the value specied in the mode parameter are:
S_IFREG Regular le in the OSS le system or in /G, the Guardian le system.
S_ISVTX Sticky bit; used only for directories (cannot be used for les in /G, the Guardian
le system).
S_NONSTOP Regular le in the OSS le system protected by disk process checkpointing.
(Files in /G cannot have this ag set.)
When set, this ag indicates that return from a write operation does not occur
until both the primary and backup disk processes have the data (thereby protect-
ing the data against a single point of failure).
OSS le-system data caching is disabled for write operations on les for which
this ag is set. Performance is slower than when caching is used, but data
integrity protection increases. Performance is faster than when the O_SYNC
ag in the oag parameter is used, but data integrity protection is less than that
provided by O_SYNC use.
Opening Guardian Files
If the le is a Guardian le (that is, if it is in the /G le system):
The le can be opened only if it is:
A format 1 le on a physical disk volume and one of the following:
An odd, unstructured Enscribe le. In this case, it is opened as a regular
le with a primary and secondary extent size that is a multiple of 2. If
the extent size is odd, the open fails.
If the unstructured buffer size was not 4096, a successful open makes the
buffer size 4096 (as if the Guardian procedure SETMODE was called for
mode 93 with a parameter value of 4096).
An EDIT le (le code 101). In this case, it is opened as a regular le
for read-only access.
A TTY simulation process.
An attempt to open:
A format 2 le
58 Hewlett-Packard Company 527186-003