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

System Functions (a - d) creat64(2)
The file does not allow write access.
File Type Flags
The file type flags that can be logically ORed into the value specified in the mode parameter are:
S_IFREG Regular file in the OSS file system or in /G, the Guardian file system.
S_ISVTX Sticky bit; used only for directories (cannot be used for files in /G, the Guardian
file system).
Access Control Lists (ACLs)
The creat64() function does not change the ACL for an existing file. For more information
about ACLs for existing files, see the acl(2), chmod(2), and acl(5) reference pages.
For more information about ACLs, including ACL inheritance for newly created files, see the
acl(5) reference page.
Accessing Files in Restricted-Access Filesets
When accessing a file in a restricted-access leset, the super ID (255,255 in the Guardian
environment, 65535 in the OSS environment) is restricted by the same file permissions and
owner privileges as any other user ID: It has no special privileges unless the executable file
started by the super ID has the PRIVSETID file privilege. In this case, the process started by the
super ID can switch to another ID and then access les in restricted-access lesets as that ID.
Executable files that have the PRIVSOARFOPEN privilege and that are started by a member of
the Safeguard SECURITY-OSS-ADMINISTRATOR (SOA) group have the appropriate privilege
to use this function on any file in a restricted-access leset. However, Network File System
(NFS) clients are not granted SOA group privileges, even if these clients are accessing the sys-
tem with a user ID that is a member of the SOA security group.
For more information about restricted-access lesets and file privileges, see the Open System Ser-
vices Management and Operations Guide.
Opening Guardian Files
If the file is a Guardian file (that is, a file in the /G file system), these rules apply:
The file can be opened only if it is one of these:
An odd, unstructured Enscribe file. In this case, it is opened as a regular file 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 file (file code 101). In this case, it is opened as a regular file for read-
only access.
A tty simulation process.
An attempt to open any file (or device) of any other type fails, and errno is set to the
value of [EINVAL].
An attempt to open any file on a logical disk volume (virtual disk) administered through
the Storage Management Foundation (SMF) fails, and errno is set to the value of
[ENOTSUP].
An attempt to open a volume, subvolume, or process (/G/vol, /G/vol/subvol,or
/G/process, respectively) fails, and errno is set to the value of [EISDIR].
527186-023 Hewlett-Packard Company 153