Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 130 Lines • ▼ Show 20 Lines | |||||
#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_BENEATH 0x00400000 /* Fail if not under cwd */ | ||||
#define O_RESOLVE_BENEATH 0x00800000 /* As O_BENEATH, but do not allow | |||||
resolve to walk out of cwd even to | |||||
return back */ | |||||
#endif | #endif | ||||
/* | /* | ||||
* XXX missing O_DSYNC, O_RSYNC. | * XXX missing O_DSYNC, O_RSYNC. | ||||
*/ | */ | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
▲ Show 20 Lines • Show All 63 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_BENEATH 0x1000 /* Fail if not under dirfd */ | ||||
#define AT_RESOLVE_BENEATH 0x2000 /* As AT_BENEATH, but do not allow | |||||
resolve to walk out of dirfd even | |||||
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 132 Lines • Show Last 20 Lines |