From: Roland McGrath Date: Tue, 25 Oct 1994 07:53:22 +0000 (+0000) Subject: (O_ASYNC, O_FSYNC, O_SYNC): Protect with [__USE_BSD]. X-Git-Tag: cvs/mib-28oct94~13 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c9a2fbab80ad66f37f2bf8d3b6b15d5cc98baf4e;p=thirdparty%2Fglibc.git (O_ASYNC, O_FSYNC, O_SYNC): Protect with [__USE_BSD]. --- diff --git a/sysdeps/mach/hurd/fcntlbits.h b/sysdeps/mach/hurd/fcntlbits.h index ab2e647bdb7..8a5e4cd52a6 100644 --- a/sysdeps/mach/hurd/fcntlbits.h +++ b/sysdeps/mach/hurd/fcntlbits.h @@ -1,5 +1,5 @@ /* O_*, F_*, FD_* bit values for GNU. -Copyright (C) 1993 Free Software Foundation, Inc. +Copyright (C) 1993, 1994 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -61,24 +61,25 @@ Cambridge, MA 02139, USA. */ 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 #ifdef __USE_GNU #define O_NOATIME 0x0800 /* Don't set access time on read (owner). */ #endif /* The name O_NONBLOCK is unfortunately overloaded; it is both a file name - translation flag and a file status flag. O_NDELAY is the deprecated BSD - name for the same flag, overloaded in the same way. - - When used in `dir_lookup' (and consequently `open', - `hurd_file_name_lookup', or `file_name_lookup'), O_NONBLOCK says the - open should return immediately instead of blocking for any significant - length of time (e.g., to wait for carrier detect on a serial line). It - is also saved as a file status flag, and after open has the following - meaning. + translation flag and an I/O operating mode. O_NDELAY is the deprecated + BSD name for the same flag, overloaded in the same way. + + When used in `dir_lookup' (and consequently `open', `hurd_file_name_lookup', + or `file_name_lookup'), O_NONBLOCK says the open should return immediately + instead of blocking for any significant length of time (e.g., to wait + for carrier detect on a serial line). It is also saved as an I/O + operating mode, and after open has the following meaning. When used in `io_*_openmodes' (and consequently `fcntl' with the F_SETFL command), the O_NONBLOCK flag means to do nonblocking i/o: any i/o