Move definitions of AT_* constants from the middle of the open(2) flags
enumeration. Noted by: bde
This commit is contained in:
parent
a18a95db4a
commit
8af8ad6811
@ -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)
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user