Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 129 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 */ | /* #define O_UNUSED1 0x00400000 */ /* Was O_BENEATH */ | ||||
#define O_RESOLVE_BENEATH 0x00800000 /* As O_BENEATH, but do not allow | #define O_RESOLVE_BENEATH 0x00800000 /* Do not allow name resolution to walk | ||||
resolve to walk out of cwd even to | out of cwd */ | ||||
markj: It seems weird to include O_UNUSED1 in the namespace. Should this line perhaps be commented out? | |||||
return back */ | |||||
#endif | #endif | ||||
#define O_DSYNC 0x01000000 /* POSIX data sync */ | #define O_DSYNC 0x01000000 /* POSIX data sync */ | ||||
/* | /* | ||||
* XXX missing O_RSYNC. | * XXX missing O_RSYNC. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 65 Lines • ▼ Show 20 Lines | |||||
/* | /* | ||||
* Miscellaneous flags for the *at() syscalls. | * Miscellaneous flags for the *at() syscalls. | ||||
*/ | */ | ||||
#define AT_EACCESS 0x0100 /* Check access using effective user | #define AT_EACCESS 0x0100 /* Check access using effective user | ||||
and group ID */ | and group ID */ | ||||
#define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ | #define AT_SYMLINK_NOFOLLOW 0x0200 /* Do not follow symbolic links */ | ||||
#define AT_SYMLINK_FOLLOW 0x0400 /* Follow symbolic link */ | #define AT_SYMLINK_FOLLOW 0x0400 /* Follow symbolic link */ | ||||
#define AT_REMOVEDIR 0x0800 /* Remove directory instead of file */ | #define AT_REMOVEDIR 0x0800 /* Remove directory instead of file */ | ||||
#define AT_BENEATH 0x1000 /* Fail if not under dirfd */ | /* #define AT_UNUSED1 0x1000 *//* Was AT_BENEATH */ | ||||
#define AT_RESOLVE_BENEATH 0x2000 /* As AT_BENEATH, but do not allow | #define AT_RESOLVE_BENEATH 0x2000 /* Do not allow name resolution | ||||
resolve to walk out of dirfd even | to walk out of dirfd */ | ||||
to return back */ | |||||
#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 133 Lines • Show Last 20 Lines |
It seems weird to include O_UNUSED1 in the namespace. Should this line perhaps be commented out? Ditto for AT_UNUSED1.