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

System Functions (f - i) fstat(2)
S_IRWXU Owner class
S_ISGID Set group ID on execution
S_ISUID Set user ID on execution
S_ISVTX Sticky bit; used only for directories (not ORed for files in /G, the
Guardian file system)
S_TRUST Indicates that the file does not contain code for an uncooperative
process or code to examine or modify I/O buffers. This flag
suppresses operating system protection of the buffers when the
memory segment containing the buffers is not shared. This flag
applies only to loadfiles for a process, and only a user with
appropriate privileges (the super ID) can set it.
S_TRUSTSHARED
Indicates that the file does not contain code for an uncooperative
process or code to examine or modify I/O buffers. This flag
suppresses operating system protection of the buffers regardless
of whether the memory segment containing the buffers is shared.
This flag applies only to loadfiles for a process, and only a user
with appropriate privileges (the super ID) can set it.
Values for Guardian objects are described in Use on Guardian Objects, later in
this reference page.
st_nlink Number of links.
Values for OSS objects are listed next. Values for Guardian objects are
described in Use on Guardian Objects, later in this reference page.
For Contains
Regular file Number of links to the file
Directory Number of links to the directory
FIFO Number of links to the file
Pipe -1
AF_INET or AF_INET6 socket 0 (zero)
AF_UNIX socket Number of links to the socket file
/dev/null Number of links to the file
/dev/tty Number of links to the file
st_acl If set to 1, indicates that the file has optional access control list (ACL) entries.
For compatibility with HP-UX, the member name st_aclv is provided as alias for
st_acl. For more information about ACLs, see the acl(5) reference page.
st_fileprivs File privileges. For information about file privileges see the setfilepriv(2) refer-
ence page.
st_uid User ID.
Values for OSS objects are listed next. Values for Guardian objects are
described in Use on Guardian Objects, later in this reference page.
527186-023 Hewlett-Packard Company 327