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 field:
S_IFMT File type. This field can contain one of the following values:
S_IFCHR Character special file.
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_NONSTOP Regular file in the OSS file 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 file-system data caching is disabled for write operations on
files 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 oflag 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 files in /G, the
Guardian file 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 4−15