diff options
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/generic/bits/poll.h | 11 | ||||
-rw-r--r-- | sysdeps/mach/hurd/bits/fcntl.h | 8 |
2 files changed, 10 insertions, 9 deletions
diff --git a/sysdeps/generic/bits/poll.h b/sysdeps/generic/bits/poll.h index a3da4306ad..022a06cc1b 100644 --- a/sysdeps/generic/bits/poll.h +++ b/sysdeps/generic/bits/poll.h @@ -27,10 +27,13 @@ #define POLLPRI 02 /* There is urgent data to read. */ #define POLLOUT 04 /* Writing now will not block. */ -/* Some aliases. */ -#define POLLWRNORM POLLOUT -#define POLLRDNORM POLLIN -#define POLLRDBAND POLLPRI +#ifdef __USE_XOPEN +/* These values are defined in XPG4.2. */ +# define POLLRDNORM POLLIN /* Normal data may be read. */ +# define POLLRDBAND POLLPRI /* Priority data may be read. */ +# define POLLWRNORM POLLOUT /* Writing now will not block. */ +# define POLLWRBAND POLLOUT /* Priority data may be written. */ +#endif /* Event types always implicitly polled for. These bits need not be set in `events', but they will appear in `revents' to indicate the status of diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h index 8e39f636c2..09da177e69 100644 --- a/sysdeps/mach/hurd/bits/fcntl.h +++ b/sysdeps/mach/hurd/bits/fcntl.h @@ -65,11 +65,9 @@ returned by `fcntl' with the F_GETFL command. */ #define O_APPEND 0x0100 /* Writes always append to the file. */ -#ifdef __USE_BSD -# define O_ASYNC 0x0200 /* Send SIGIO to owner when data is ready. */ -# define O_FSYNC 0x0400 /* Synchronous writes. */ -# define O_SYNC O_FSYNC -#endif +#define O_ASYNC 0x0200 /* Send SIGIO to owner when data is ready. */ +#define O_FSYNC 0x0400 /* Synchronous writes. */ +#define O_SYNC O_FSYNC #ifdef __USE_GNU # define O_NOATIME 0x0800 /* Don't set access time on read (owner). */ #endif |