diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-07-20 13:36:52 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-07-20 13:36:52 -0400 |
commit | fd72e3042517f3c95ab2d707e1074f4d393b5f9a (patch) | |
tree | 37928d802bfb8cfd55ea49dcb16fe03091093e65 /include/fcntl.h | |
parent | 91f91bcb3abda3780347d681c3bef6201b9ca60f (diff) |
first pass at implementing *at funcs
Tested basic functionality with coreutils and things seem to work. At
least gives us a basis to jump from.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'include/fcntl.h')
-rw-r--r-- | include/fcntl.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/include/fcntl.h b/include/fcntl.h index 5d0e4aa82..a6001c0ff 100644 --- a/include/fcntl.h +++ b/include/fcntl.h @@ -56,13 +56,16 @@ __BEGIN_DECLS # define SEEK_END 2 /* Seek from end of file. */ #endif /* XPG */ -#if 0 /*def __USE_GNU*/ +#ifdef __USE_ATFILE # define AT_FDCWD -100 /* Special value used to indicate - openat should use the current - working directory. */ + the *at functions should use the + current working directory. */ # define AT_SYMLINK_NOFOLLOW 0x100 /* Do not follow symbolic links. */ # define AT_REMOVEDIR 0x200 /* Remove directory instead of unlinking file. */ +# define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic links. */ +# define AT_EACCESS 0x200 /* Test access permitted for + effective IDs, not real IDs. */ #endif /* Do the file control operation described by CMD on FD. @@ -107,11 +110,11 @@ extern int open64 (__const char *__file, int __oflag, ...) __nonnull ((1)); libc_hidden_proto(open64) #endif -#if 0 /*def __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. |