Home | History | Annotate | Download | only in lib

Lines Matching defs:stat

1 /* Work around platform bugs in stat.
19 /* If the user's config.h happens to include <sys/stat.h>, let it include only
20 the system's <sys/stat.h> here, so that orig_stat doesn't recurse to
25 /* Get the original definition of stat. It might be defined as a macro. */
27 #include <sys/stat.h>
32 # undef stat /* avoid warning on mingw64 with _FILE_OFFSET_BITS=64 */
33 # define stat _stati64
37 /* mingw64 has a broken stat() function, based on _stat(), in libmingwex.a.
39 # define stat _stat
46 orig_stat (const char *filename, struct stat *buf)
48 return stat (filename, buf);
52 /* Write "sys/stat.h" here, not <sys/stat.h>, otherwise OSF/1 5.1 DTK cc
53 eliminates this include because of the preliminary #include <sys/stat.h>
55 #include "sys/stat.h"
80 rpl_stat (char const *name, struct stat *st)
101 c:\) where stat() only succeeds with a trailing slash, and
102 other directories (like c:\windows) where stat() only
106 ENAMETOOLONG, and for stat("file/"), when we want ENOTDIR.