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

System Functions (n - p) open64(2)
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 le on a physical disk volume and either:
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 Telserv or OSSTTY terminal process.
You cannot use the open64() function on any other type of Guardian object. An attempt
to open:
A structured le fails with errno set, usually to [EINVAL].
A le administered through the Storage Management Foundation (SMF) fails
with errno set to [ENOTSUP].
Any le or device of any other type not described here fails with errno set, usu-
ally to [EINVAL].
An attempt to open a volume, a subvolume, or a process other than a TTY simulation
process (/G/vol, /G/vol/subvol,or/G/process, respectively) fails with errno set to [EIS-
DIR].
An attempt to open a subvolume with a reserved name beginning with ZYQ (for exam-
ple, /G/vol2/zyq00004) fails with errno set to [EACCES].
An attempt to open a le within a subvolume with a reserved name beginning with ZYQ
(for example, /G/vol2/zyq00004/z000002x) fails with errno set to [EACCES].
If the le is not an EDIT le (that is, the le code is not 101), it is opened in shared
exclusion mode.
If the le is an EDIT le and read-only access is specied, the le is opened in protected
exclusion mode in the Guardian environment.
If the le is an EDIT le and write access is specied, the call fails with errno set to
[EINVAL].
The sysconf() function reports the maximum number of opens as the upper limit of
opens per process. The actual limit depends on other factors, such as the size of the pro-
cess le segment (PFS) and the number of existing opens on directories or on les in the
Guardian environment.
If the open requires le creation, the Guardian le created will be Format 2, odd, unstruc-
tured, and le code 180.
If the open requires le creation, the Guardian le created is given access permissions
compatible with the standard security permissions for the Guardian creator access ID
527186-007 Hewlett-Packard Company 519