diff options
author | Jim Meyering <jim@meyering.net> | 1994-08-27 21:04:53 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1994-08-27 21:04:53 +0000 |
commit | 94172d07640f390abd75ce2bd0ede8131cb84ccf (patch) | |
tree | 8e62f356fc92ca21235a4c78388f5d1c6d33fdbd /src/system.h | |
parent | 6d3aa2169e8997d741a6c537d697d4dff3973df8 (diff) | |
download | coreutils-94172d07640f390abd75ce2bd0ede8131cb84ccf.tar.xz |
.
Diffstat (limited to 'src/system.h')
-rw-r--r-- | src/system.h | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/src/system.h b/src/system.h index 5e7636018..7c49788d1 100644 --- a/src/system.h +++ b/src/system.h @@ -19,38 +19,18 @@ #include <sys/stat.h> -#ifdef STAT_MACROS_BROKEN -#ifdef S_ISBLK +#ifdef STAT_MACROS_BROKEN #undef S_ISBLK -#endif -#ifdef S_ISCHR #undef S_ISCHR -#endif -#ifdef S_ISDIR #undef S_ISDIR -#endif -#ifdef S_ISFIFO #undef S_ISFIFO -#endif -#ifdef S_ISLNK #undef S_ISLNK -#endif -#ifdef S_ISMPB #undef S_ISMPB -#endif -#ifdef S_ISMPC #undef S_ISMPC -#endif -#ifdef S_ISNWK #undef S_ISNWK -#endif -#ifdef S_ISREG #undef S_ISREG -#endif -#ifdef S_ISSOCK #undef S_ISSOCK -#endif -#endif /* STAT_MACROS_BROKEN. */ +#endif /* STAT_MACROS_BROKEN. */ #ifndef S_ISREG /* Doesn't have POSIX.1 stat stuff. */ #define mode_t unsigned short @@ -97,6 +77,18 @@ #include <unistd.h> #endif +#ifndef STDIN_FILENO +#define STDIN_FILENO 0 +#endif + +#ifndef STDOUT_FILENO +#define STDOUT_FILENO 1 +#endif + +#ifndef STDERR_FILENO +#define STDERR_FILENO 2 +#endif + #include "pathmax.h" #ifndef _POSIX_VERSION @@ -252,8 +244,14 @@ extern int errno; otherwise return it unchanged. */ #define convert_blocks(b, k) ((k) ? ((b) + 1) / 2 : (b)) +#include "safe-stat.h" +#include "safe-lstat.h" + #ifndef S_ISLNK #define lstat stat +#undef SAFE_LSTAT +#define SAFE_LSTAT SAFE_STAT +#define safe_lstat safe_stat #endif #ifndef RETSIGTYPE |