Open System Services System Calls Reference Manual (G06.27+, H06.04+)
System Functions (s and S) stat(2)
S_IFDIR Directory.
S_IFIFO FIFO.
S_IFREG Regular file.
S_IFSOCK Socket.
For an AF_UNIX socket, the
user permissions from the inode
for the socket are returned for
the permission bits. The access
flags are also returned from the
inode.
S_IRWXG Group class
S_IRWXO Other class
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 operat-
ing 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 can be set only by a user with
appropriate privileges (the super ID).
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 operat-
ing 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 can be set only by a
user with appropriate privileges (the super ID).
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.
527186-004 Hewlett-Packard Company 7−165