Open System Services System Calls Reference Manual (G06.28+, H06.05+)

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_IRWXG Permissions for the owning group, or if the st_acl ag is set, per- |
missions for the the class ACL entry.
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.
For Contains
Regular le Number of links to the le
Directory Number of links to the directory
FIFO Number of links to the le
AF_UNIX socket Number of links to the socket le
/dev/null Number of links to the le
/dev/tty Number of links to the le
st_acl If set to 1, indicates that the le 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_uid User ID.
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-007 Hewlett-Packard Company 431