diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-10 15:27:04 -0700 |
---|---|---|
committer | Roland McGrath <roland@hack.frob.com> | 2012-05-10 15:57:26 -0700 |
commit | ee16e894aaf51674058224fe0ece852bd0b3632d (patch) | |
tree | 7e984b43afdd184218195872882bf28490c9d730 /sysdeps/mach | |
parent | 6103ae3b0eb1569cfdceb0e7c9625643b63dfd2a (diff) | |
download | glibc-ee16e894aaf51674058224fe0ece852bd0b3632d.tar glibc-ee16e894aaf51674058224fe0ece852bd0b3632d.tar.gz glibc-ee16e894aaf51674058224fe0ece852bd0b3632d.tar.bz2 glibc-ee16e894aaf51674058224fe0ece852bd0b3632d.zip |
Hurd: Fix POSIX 2008 visibility
Diffstat (limited to 'sysdeps/mach')
-rw-r--r-- | sysdeps/mach/hurd/bits/fcntl.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/mach/hurd/bits/fcntl.h b/sysdeps/mach/hurd/bits/fcntl.h index 4224bf18ff..1d24c7399d 100644 --- a/sysdeps/mach/hurd/bits/fcntl.h +++ b/sysdeps/mach/hurd/bits/fcntl.h @@ -1,6 +1,5 @@ /* O_*, F_*, FD_* bit values for GNU. - Copyright (C) 1993,1994,1996,1997,1998,1999,2000,2001,2004,2007 - Free Software Foundation, Inc. + Copyright (C) 1993-2012 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 @@ -54,7 +53,9 @@ #ifdef __USE_GNU # define O_NOLINK 0x0040 /* No name mappings on final component. */ # define O_NOTRANS 0x0080 /* No translator on final component. */ +#endif +#ifdef __USE_XOPEN2K8 # define O_NOFOLLOW 0x00100000 /* Produce ENOENT if file is a symlink. */ # define O_DIRECTORY 0x00200000 /* Produce ENOTDIR if not a directory. */ #endif @@ -118,7 +119,7 @@ once the file has been opened. */ #define O_TRUNC 0x00010000 /* Truncate file to zero length. */ -#ifdef __USE_GNU +#ifdef __USE_XOPEN2K8 # define O_CLOEXEC 0x00400000 /* Set FD_CLOEXEC. */ #endif @@ -158,7 +159,7 @@ #define F_SETFD 2 /* Set file descriptor flags. */ #define F_GETFL 3 /* Get file status flags. */ #define F_SETFL 4 /* Set file status flags. */ -#if defined __USE_BSD || defined __USE_UNIX98 +#if defined __USE_BSD || defined __USE_UNIX98 || defined __USE_XOPEN2K8 # define F_GETOWN 5 /* Get owner (receiver of SIGIO). */ # define F_SETOWN 6 /* Set owner (receiver of SIGIO). */ #endif @@ -166,7 +167,7 @@ #define F_SETLK 8 /* Set record locking info (non-blocking). */ #define F_SETLKW 9 /* Set record locking info (blocking). */ -#ifdef __USE_GNU +#ifdef __USE_XOPEN2K8 # define F_DUPFD_CLOEXEC 1030 /* Duplicate, set FD_CLOEXEC on new one. */ #endif |