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

lstat64(2) OSS System Calls Reference Manual
NAME
lstat64 - Provides information about a symbolic link or any 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/stat.h>
int lstat64(
const char *path,
struct stat64 *buffer);
PARAMETERS
path Points to the pathname of a le. If used for a symbolic link, the
path parameter points to the pathname of the symbolic link iden-
tifying the le.
buffer Points to a stat64 structure, into which information is placed
about the le.
DESCRIPTION
The lstat64() function is similar to the lstat() function except that, in addition to supporting
smaller les, the lstat64( ) function supports OSS 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 lstat( ) is automatically mapped to this function when you compile the
application using the #dene _FILE_OFFSET_BITS 64 feature test macro or an equivalent
compiler command option.
The lstat64() function obtains information about the symbolic link whose name is pointed to by
the path parameter or about any le pointed to by the path parameter.
The lstat64() function is like the stat64() or fstat64( ) function, except that lstat64( ) returns
information about the link, while the stat64() and fstat64() functions return information about
the le that the link refers to.
Read, write, or execute permission for the named le is not required, but all directories listed in
the pathname leading to the le must be searchable.
438 Hewlett-Packard Company 527186-007