Open System Services System Calls Reference Manual (G06.29+, H06.08+, J06.03+)
spt_fstat64z(2) OSS System Calls Reference Manual
NAME
spt_fstat64z - Provides information about an open file (serializes I/O operations on an open file))
LIBRARY
H-series and J series OSS processes: /G/system/zdllnnn/zsptdll
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <sys/stat.h>
#include <spthread.h>
int spt_fstat64z(
int filedes,
struct stat64 *buffer);
PARAMETERS
filedes Specifies an open file descriptor obtained from a successful call to the accept(),
creat(), creat64(),dup(), dup2(), fcntl(), open(), open64(), pipe(), socket(),
or socketpair() function.
buffer Points to a stat64 structure, into which information is placed about the file. The
stat64 structure is described in the sys/stat.h header file.
DESCRIPTION
The spt_fstat64z() function is a thread-aware version of the fstat64( ) function.
The spt_fstat64z() function obtains information about the open file associated with the filedes
parameter.
The file information is written to the area specified by the buffer parameter, 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 st_acl:1;
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 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;
7−226 Hewlett-Packard Company 527186-023