Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)

fstat64(2) OSS System Calls Reference Manual
The file information is written to the area specified by the buffer parameter, which is a pointer to
a stat64 structure which is a pointer to a stat64 structure. For J06.11 and later J-series RVUs and
H06.22 and later H-series RVUs, the stat64 structure uses this definition from the sys/stat.h
header file:
struct stat64 {
dev_t st_dev;
ino64_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
unsigned int __filler_1:7;
unsigned int st_fileprivs:8; /* File privileges */
uid_t st_uid;
gid_t st_gid;
dev_t st_rdev;
off64_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
mode_t st_basemode; /* Permissions with original group perms */
int64_t reserved[3];
};
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 stat64 {
dev_t st_dev;
ino64_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;
dev_t st_rdev;
off64_t st_size;
time_t st_atime;
time_t st_mtime;
time_t st_ctime;
mode_t st_basemode; /* Permissions with original group perms */
int64_t reserved[3];
};
The fstat64() function updates any time-related fields associated with the file before writing into
the stat64 structure, unless it is a read-only fileset. Time-related fields are not updated for read-
only OSS filesets.
The fields in the stat64 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.
336 Hewlett-Packard Company 527186-023