Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 127 Lines • ▼ Show 20 Lines | |||||
/* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */ | /* Defined by POSIX 1003.1-2008; BSD default, but reserve for future use. */ | ||||
#define O_TTY_INIT 0x00080000 /* Restore default termios attributes */ | #define O_TTY_INIT 0x00080000 /* Restore default termios attributes */ | ||||
#define O_CLOEXEC 0x00100000 | #define O_CLOEXEC 0x00100000 | ||||
#endif | #endif | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define O_VERIFY 0x00200000 /* open only after verification */ | #define O_VERIFY 0x00200000 /* open only after verification */ | ||||
#define O_BENEATH 0x00400000 /* Fail if not under cwd */ | |||||
#endif | #endif | ||||
/* | /* | ||||
* XXX missing O_DSYNC, O_RSYNC. | * XXX missing O_DSYNC, O_RSYNC. | ||||
*/ | */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | |||||
* to determine the target of relative file paths in the openat() and | * to determine the target of relative file paths in the openat() and | ||||
* similar syscalls. | * similar syscalls. | ||||
*/ | */ | ||||
#define AT_FDCWD -100 | #define AT_FDCWD -100 | ||||
/* | /* | ||||
* Miscellaneous flags for the *at() syscalls. | * Miscellaneous flags for the *at() syscalls. | ||||
*/ | */ | ||||
#define AT_EACCESS 0x100 /* Check access using effective user and group ID */ | #define AT_EACCESS 0x0100 /* Check access using effective user | ||||
#define AT_SYMLINK_NOFOLLOW 0x200 /* Do not follow symbolic links */ | and group ID */ | ||||
#define AT_SYMLINK_FOLLOW 0x400 /* Follow symbolic link */ | #define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ | ||||
#define AT_REMOVEDIR 0x800 /* Remove directory instead of file */ | #define AT_SYMLINK_FOLLOW 0x0400 /* Follow symbolic link */ | ||||
#define AT_REMOVEDIR 0x0800 /* Remove directory instead of file */ | |||||
#define AT_BENEATH 0x1000 /* Fail if not under dirfd */ | |||||
#endif | #endif | ||||
/* | /* | ||||
* Constants used for fcntl(2) | * Constants used for fcntl(2) | ||||
*/ | */ | ||||
/* command values */ | /* command values */ | ||||
#define F_DUPFD 0 /* duplicate file descriptor */ | #define F_DUPFD 0 /* duplicate file descriptor */ | ||||
▲ Show 20 Lines • Show All 114 Lines • Show Last 20 Lines |