diff options
author | Roland McGrath <roland@gnu.org> | 2006-01-05 12:25:42 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2006-01-05 12:25:42 +0000 |
commit | 0b8f25bbca8a9d08f0bdae0772fa5ec5172144b5 (patch) | |
tree | ab5d5b8a656112df06349e544c00138f12a88246 /io/fcntl.h | |
parent | c90c5d4106a2903a40cc3213f8d172e5c6c7ffd6 (diff) | |
download | glibc-0b8f25bbca8a9d08f0bdae0772fa5ec5172144b5.tar.gz glibc-0b8f25bbca8a9d08f0bdae0772fa5ec5172144b5.tar.xz glibc-0b8f25bbca8a9d08f0bdae0772fa5ec5172144b5.zip |
* include/features.h: Grok _ATFILE_SOURCE and define __USE_ATFILE when
it or _GNU_SOURCE is defined. * io/fcntl.h: Protect *at and AT_* with [__USE_ATFILE] instead of [__USE_GNU]. * libio/stdio.h: Likewise. * posix/unistd.h: Likewise. * time/sys/time.h: Likewise.
Diffstat (limited to 'io/fcntl.h')
-rw-r--r-- | io/fcntl.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/io/fcntl.h b/io/fcntl.h index 8e13d33dcc..fd45933fc2 100644 --- a/io/fcntl.h +++ b/io/fcntl.h @@ -1,5 +1,5 @@ -/* Copyright (C) 1991,1992,1994-2001,2003,2004,2005 - Free Software Foundation, Inc. +/* Copyright (C) 1991,1992,1994-2001,2003,2004,2005,2006 + 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 @@ -56,7 +56,7 @@ __BEGIN_DECLS # define SEEK_END 2 /* Seek from end of file. */ #endif /* XPG */ -#ifdef __USE_GNU +#ifdef __USE_ATFILE # define AT_FDCWD -100 /* Special value used to indicate openat should use the current working directory. */ @@ -92,11 +92,11 @@ extern int __REDIRECT (open, (__const char *__file, int __oflag, ...), open64) extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1)); #endif -#ifdef __USE_GNU -/* Similar to OPEN but a relative path name is interpreted relative to +#ifdef __USE_ATFILE +/* Similar to `open' but a relative path name is interpreted relative to the directory for which FD is a descriptor. - NOTE: some other OPENAT implementation support additional functionality + NOTE: some other `openat' implementation support additional functionality through this interface, especially using the O_XATTR flag. This is not yet supported here. |