From: Jim Meyering Date: Mon, 16 Jun 2003 10:46:59 +0000 (+0000) Subject: (O_NDELAY, O_NONBLOCK, O_NOCTTY, EISDIR): New definitions. X-Git-Tag: v5.0.1~259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d6c9af25020623c9c76d2706aff042699a7dfae;p=thirdparty%2Fcoreutils.git (O_NDELAY, O_NONBLOCK, O_NOCTTY, EISDIR): New definitions. Moved here from touch.c, with one change: define EISDIR to -1, not 0. --- diff --git a/src/system.h b/src/system.h index 52e3159e73..245c83a5a1 100644 --- a/src/system.h +++ b/src/system.h @@ -117,13 +117,16 @@ void *memrchr (const void *, int, size_t); extern int errno; #endif -/* Some systems don't define ENOSYS. */ +/* Some systems don't define the following symbols. */ #ifndef ENOSYS # define ENOSYS (-1) #endif #ifndef ENOTSUP # define ENOTSUP (-1) #endif +#ifndef EISDIR +# define EISDIR (-1) +#endif #include @@ -171,6 +174,18 @@ extern int errno; # define O_TEXT _O_TEXT #endif +#if !defined O_NDELAY +# define O_NDELAY 0 +#endif + +#if !defined O_NONBLOCK +# define O_NONBLOCK O_NDELAY +#endif + +#if !defined O_NOCTTY +# define O_NOCTTY 0 +#endif + #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY