__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 ISO POSIX (2003) functions stat, lstat, and fstat respectively.

ver shall be 3 or the behavior of these functions is undefined.

__xstat(3, path, stat_buf) shall behave as stat(path, stat_buf) as specified by ISO POSIX (2003).

__lxstat(3, path, stat_buf) shall behave as lstat(path, stat_buf) as specified by ISO POSIX (2003).

__fxstat(3, fildes, stat_buf) shall behave as fstat(fildes, stat_buf) as specified by ISO POSIX (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.