Lines Matching refs:stat

1 /* Provide a more complete sys/stat header file.
19 /* This file is supposed to be used on platforms where <sys/stat.h> is
72 # define stat _stati64
338 _GL_FUNCDECL_RPL (fstat, int, (int fd, struct stat *buf) _GL_ARG_NONNULL ((2)));
339 _GL_CXXALIAS_RPL (fstat, int, (int fd, struct stat *buf));
341 _GL_CXXALIAS_SYS (fstat, int, (int fd, struct stat *buf));
345 /* Above, we define stat to _stati64. */
363 (int fd, char const *name, struct stat *st, int flags)
366 (int fd, char const *name, struct stat *st, int flags));
370 (int fd, char const *name, struct stat *st, int flags)
374 (int fd, char const *name, struct stat *st, int flags));
456 without links, stat does just fine. */
458 # define lstat stat
460 _GL_CXXALIAS_RPL_1 (lstat, stat, int, (const char *name, struct stat *buf));
466 _GL_FUNCDECL_RPL (lstat, int, (const char *name, struct stat *buf)
468 _GL_CXXALIAS_RPL (lstat, int, (const char *name, struct stat *buf));
470 _GL_CXXALIAS_SYS (lstat, int, (const char *name, struct stat *buf));
624 /* We can't use the object-like #define stat rpl_stat, because of
625 struct stat. This means that rpl_stat will not be used if the user
626 does (stat)(a,b). Oh well. */
627 # if defined _AIX && defined stat && defined _LARGE_FILES
628 /* With _LARGE_FILES defined, AIX (only) defines stat to stat64,
629 so we have to replace stat64() instead of stat(). */
633 /* Above, we define stat to _stati64. */
654 # elif defined __MINGW32__ && defined stat
656 /* The system headers define stat to _stat32i64. */
660 /* The system headers define stat to _stat64. */
664 # elif defined _MSC_VER && defined stat
666 /* The system headers define stat to _stat32. */
670 /* The system headers define stat to _stat64i32. */
675 # undef stat
676 # define stat(name, st) rpl_stat (name, st)
678 _GL_EXTERN_C int stat (const char *name, struct stat *buf)
682 # undef stat
684 _GL_WARN_ON_USE (stat, "stat is unportable - "
685 "use gnulib module stat for portability");