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

System Functions (s and S) stat64(2)
NAME
stat64 - Provides information about a file
LIBRARY
G-series native Guardian processes: system library
G-series native OSS processes: system library
H-series and J-series native Guardian processes: implicit libraries
H-series and J-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 file.
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 stat64() function is similar to the stat() function except that, in addition to supporting
smaller files, the stat64() function supports files larger than approximately 2 gigabytes.
An application can explicitly call this function when you compile the application using the
#define _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 #define _FILE_OFFSET_BITS 64 feature test macro or an equivalent compiler com-
mand option.
The stat64() function obtains information about the file whose name is pointed to by the path
parameter. Read, write, or execute permission for the named file is not required, but all direc-
tories listed in the pathname leading to the file must be searchable.
527186-023 Hewlett-Packard Company 7505