Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
System Functions (s and S) spt_fstatz(2)
For J06.10 and earlier J-series RVUs and H06.21 and earlier H-series RVUs, the stat structure
uses this definition from the sys/stat.h header file:
struct stat {
dev_t st_dev;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
unsigned int st_acl:1;
unsigned int __filler_1:15;
uid_t st_uid;
gid_t st_gid;
#if _FILE_OFFSET_BITS != 64 || _TANDEM_ARCH_ == 0
mode_t st_basemode; /* Permissions with original group perms */
#endif
dev_t st_rdev;
off_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
#if _FILE_OFFSET_BITS == 64 && _TANDEM_ARCH_ != 0
mode_t st_basemode; /* Permissions with original group perms */
#endif
int64_t st_reserved[3];
};
The spt_fstatz() function updates any time-related fields associated with the file before writing
into the stat structure, unless it is a read-only fileset. Time-related fields are not updated for
read-only OSS filesets.
The fields in the stat structure have these meanings and content:
st_dev OSS device identifier for a fileset.
Values for local OSS objects are listed next. Values for local Guardian objects
are described in Use on Guardian Objects, and values for remote Guardian or
OSS objects are described in Use on Remote Objects, later in this reference
page.
For Contains
Regular file ID of device containing directory entry
Directory ID of device containing directory
Pipe or FIFO ID of special fileset for pipes
AF_INET or AF_INET6 socket ID of special fileset for sockets
AF_UNIX socket ID of device containing the fileset in which
the socket file was created
/dev/null ID of device containing directory entry
/dev/tty ID of device containing directory entry
st_ino File serial number (inode number). The file serial number and OSS device
identifier uniquely identify a regular OSS file within an OSS fileset.
Values for OSS objects are listed next. Values for Guardian objects are
described in Use on Guardian Objects, later in this reference page.
527186-023 Hewlett-Packard Company 7−237