Lines Matching refs:stat

2 /* Provide a more complete sys/stat header file.
20 /* This file is supposed to be used on platforms where <sys/stat.h> is
32 #include_next <sys/stat.h>
47 #include_next <sys/stat.h>
384 # define stat _stati64
650 _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2)));
651 _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf));
653 _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf));
657 /* Above, we define stat to _stati64. */
675 (int fd, char const *name, struct stat *st, int flags)
678 (int fd, char const *name, struct stat *st, int flags));
682 (int fd, char const *name, struct stat *st, int flags)
686 (int fd, char const *name, struct stat *st, int flags));
768 without links, stat does just fine. */
770 # define lstat stat
772 _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf));
778 _GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf)
780 _GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf));
782 _GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf));
936 /* We can't use the object-like #define stat rpl_stat, because of
937 struct stat. This means that rpl_stat will not be used if the user
938 does (stat)(a,b). Oh well. */
939 # if defined _AIX && defined stat && defined _LARGE_FILES
940 /* With _LARGE_FILES defined, AIX (only) defines stat to stat64,
941 so we have to replace stat64() instead of stat(). */
945 /* Above, we define stat to _stati64. */
966 # elif defined __MINGW32__ && defined stat
968 /* The system headers define stat to _stat32i64. */
972 /* The system headers define stat to _stat64. */
976 # elif defined _MSC_VER && defined stat
978 /* The system headers define stat to _stat32. */
982 /* The system headers define stat to _stat64i32. */
987 # undef stat
988 # define stat(name, st) rpl_stat (name, st)
990 _GL_EXTERN_C int stat (const char *name, struct stat *buf)
994 # undef stat
996 _GL_WARN_ON_USE (stat, "stat is unportable - "
997 "use gnulib module stat for portability");