diff options
author | kib <kib@FreeBSD.org> | 2009-06-22 10:11:35 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2009-06-22 10:11:35 +0000 |
commit | 1a759a35f242325e2263831a412a94a6e90ca317 (patch) | |
tree | d418d8ddd06fe3e4d3b9ca214be0c3c47ca18338 /sys/sys/fcntl.h | |
parent | 117b33aa8da5ffe5e2d9181a68446d7060b037f3 (diff) | |
download | FreeBSD-src-1a759a35f242325e2263831a412a94a6e90ca317.zip FreeBSD-src-1a759a35f242325e2263831a412a94a6e90ca317.tar.gz |
Move definitions of AT_* constants from the middle of the open(2) flags
enumeration.
Noted by: bde
Diffstat (limited to 'sys/sys/fcntl.h')
-rw-r--r-- | sys/sys/fcntl.h | 35 |
1 files changed, 18 insertions, 17 deletions
diff --git a/sys/sys/fcntl.h b/sys/sys/fcntl.h index 6e69d5d..893bbcd 100644 --- a/sys/sys/fcntl.h +++ b/sys/sys/fcntl.h @@ -105,23 +105,6 @@ typedef __pid_t pid_t; #ifdef _KERNEL #define FHASLOCK 0x4000 /* descriptor holds advisory lock */ #endif -/* Defined by POSIX Extended API Set Part 2 */ -#if __BSD_VISIBLE -/* - * Magic value that specify the use of the current working directory - * to determine the target of relative file paths in the openat() and - * similar syscalls. - */ -#define AT_FDCWD -100 - -/* - * Miscellaneous flags for the *at() syscalls. - */ -#define AT_EACCESS 0x100 /* Check access using effective user and group ID */ -#define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symbolic links */ -#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic link */ -#define AT_REMOVEDIR 0x800 /* Remove directory instead of file */ -#endif /* Defined by POSIX 1003.1; BSD default, but must be distinct from O_RDONLY. */ #define O_NOCTTY 0x8000 /* don't assign controlling terminal */ @@ -195,6 +178,24 @@ typedef __pid_t pid_t; #if __BSD_VISIBLE #endif +/* Defined by POSIX Extended API Set Part 2 */ +#if __BSD_VISIBLE +/* + * Magic value that specify the use of the current working directory + * to determine the target of relative file paths in the openat() and + * similar syscalls. + */ +#define AT_FDCWD -100 + +/* + * Miscellaneous flags for the *at() syscalls. + */ +#define AT_EACCESS 0x100 /* Check access using effective user and group ID */ +#define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symbolic links */ +#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic link */ +#define AT_REMOVEDIR 0x800 /* Remove directory instead of file */ +#endif + /* * Constants used for fcntl(2) */ |