__xstat

Name

__xstat -- provide inode information

Synopsis

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

int __xstat (int __ver,
             const char *__filename,
             struct stat *__stat_buf)

int __lxstat (int __ver,
              const char *__filename,
              struct stat *__stat_buf)

int __fxstat (int __ver,
              int __filedesc,
              struct stat *__stat_buf)

Inputs

__ver

Must be 3 or the behavior is undefined.

__filename

As in POSIX.

__filedesc

As in POSIX.

__stat_buf

As in POSIX.

Description

__xstat() has the same behavior as stat (__filename, __stat_buf) as specified by POSIX.

__lxstat() has the same behavior as lstat (__filename, __stat_buf) as specified by POSIX.

__fxstat() has the same behavior as fstat (__filedesc, __stat_buf) as specified by POSIX.

Note that the struct stat used by these functions is not the one that the kernel uses.

Usage

__xstat, __lxstat, and __fxstat are not in the source standard; stat, lstat, and fstat are not in the binary standard.