__xstat

Name

__xstat -- get File Status

Synopsis

#include <sys/stat.h>
#include <unistd.h>

int __xstat(int ver, const char * path, struct stat * stat_buf);

int __lxstat(int ver, const char * path, struct stat * stat_buf);

int __fxstat(int ver, int fildes, struct stat * stat_buf);

Description

The functions __xstat(), __lxstat(), and __fxstat() shall implement the functions stat(), lstat(), and fstat() respectively.

The behavior of these functions for values of ver other than _STAT_VER is undefined. See Data Definitions in the architecture specific part of this specification for the correct value of _STAT_VER.

__xstat(_STAT_VER, path, stat_buf) shall implement stat(path, stat_buf) as specified by POSIX 1003.1-2001 (ISO/IEC 9945-2003).

__lxstat(_STAT_VER, path, stat_buf) shall implement lstat(path, stat_buf) as specified by POSIX 1003.1-2001 (ISO/IEC 9945-2003).

__fxstat(_STAT_VER, fildes, stat_buf) shall implement fstat(fildes, stat_buf) as specified by POSIX 1003.1-2001 (ISO/IEC 9945-2003).

__xstat(), __lxstat(), and __fxstat() are not in the source standard; they are only in the binary standard.

stat(), lstat(), and fstat() are not in the binary standard; they are only in the source standard.