#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) |
__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.