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

System Functions (k - m) lstat(2)
st_mode File mode. The following bits are ORed into the st_mode eld:
S_IFMT File type. This eld can contain one of the following values:
S_IFCHR Character special le.
S_IFDIR Directory.
S_IFIFO FIFO.
S_IFREG Regular le.
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 ags are also
returned from the inode.
S_NONSTOP Regular le in the OSS le system protected by disk process
checkpointing. (Files in /G cannot have this bit set.)
When set, indicates that return from a write operation does not
occur until both the primary and backup disk processes have the
data (thereby protecting the data against a single point of
failure).
OSS le-system data caching is disabled for write operations on
les for which this bit is set. Performance is slower than when
caching is used, but data integrity protection increases. Perfor-
mance is faster than when the O_SYNC bit in the open() func-
tion oag parameter is used, but data integrity protection is less
than that provided by O_SYNC use.
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 les in /G, the
Guardian le system)
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 in the following table. Values for Guardian
objects are described in Use on Guardian Objects, later in this reference page.
527186-003 Hewlett-Packard Company 415