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

lstat(2) OSS System Calls Reference Manual
For Contains
Regular le Time of the last data modication
Directory Time of the last modication
FIFO Time of the last data modication
AF_UNIX socket Value retrieved from the inode
/dev/null Current time
/dev/tty Composite value of the times of all openers
of the le
For the /E entry of the local node, the value is the time of the most recent mount-
ing of the root leset.
st_ctime Status change time.
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 Time of the last le status change
Directory Time of the last le status change
FIFO Time of the last le status change
AF_UNIX socket Value retrieved from the inode
/dev/null Current time
/dev/tty Composite value of the times of all openers
of the le
For the /E entry of the local node, the value is the time of the most recent mount-
ing of the root leset.
Use on Guardian Objects
The lstat() function can be used like the stat() or fstat( ) function on les in /G, but symbolic
links cannot be created in /G.
The st_dev and st_ino elds of the stat structure do not uniquely identify Guardian les (les in
/G).
The st_dev eld is unique for /G, for each disk volume, and for each Telserv process (or other
process of subdevice type 30), because each of these is a separate leset.
The S_ISGUARDIANOBJECT macro can indicate whether an object is a Guardian object
when the st_dev eld is passed to the macro. The value of the macro is TRUE if the object is a
Guardian object and FALSE otherwise.
The st_ino eld is a nonunique encoding of the Guardian lename.
The st_rdev eld contains a minor device number for each ptyn entry in /G/ztnt/, representing
each Telserv process subdevice.
The st_size eld of an EDIT le (le code 101) is the actual (physical) end of le, not the number
of bytes in the le. For directories, st_size is set to 4096.
When an OSS function is called for a Guardian EDIT le, the st_mtime eld is set to the last
modication time. The st_atime eld indicates the last time the le was opened, and the
st_ctime eld is set equal to st_mtime. No other time-related elds are updated by OSS func-
tions.
418 Hewlett-Packard Company 527186-003