Open System Services System Calls Reference Manual (G06.28+, H06.05+)

stat64(2) OSS System Calls Reference Manual
NAME
stat64 - Provides information about a le
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series native Guardian processes: implicit libraries
H-series OSS processes: implicit libraries
SYNOPSIS
#include <sys/types.h> /* optional except for POSIX.1 */
#include <sys/stat.h>
int stat64(
const char *path,
struct stat64 *buffer);
PARAMETERS
path Points to the pathname identifying the le.
buffer Points to a stat64 structure, into which information is placed
about the le. The stat64 structure is described in the sys/stat.h
header le.
DESCRIPTION
The stat64() function is similar to the stat() function except that, in addition to supporting
smaller les, the stat64() function supports les larger than approximately 2 gigabytes.
An application can explicitly call this function when you compile the application using the
#dene _LARGEFILE64_SOURCE 1 feature test macro or an equivalent compiler command
option.
An application call to stat() is automatically mapped to this function you compile the application
using the #dene _FILE_OFFSET_BITS 64 feature test macro or an equivalent compiler com-
mand option.
The stat64() function obtains information about the le whose name is pointed to by the path
parameter. Read, write, or execute permission for the named le is not required, but all direc-
tories listed in the pathname leading to the le must be searchable.
7392 Hewlett-Packard Company 527186-007