Open System Services System Calls Reference Manual (G06.28+)
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_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.
For Contains
Regular file Number of links to the file
Directory Number of links to the directory
FIFO Number of links to the file
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_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-005 Hewlett-Packard Company 4−27