From 0d6c9af25020623c9c76d2706aff042699a7dfae Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 16 Jun 2003 10:46:59 +0000 Subject: (O_NDELAY, O_NONBLOCK, O_NOCTTY, EISDIR): New definitions. Moved here from touch.c, with one change: define EISDIR to -1, not 0. --- src/system.h | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/system.h b/src/system.h index 52e3159e7..245c83a5a 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 -- cgit v1.2.3-54-g00ecf