Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 190 Lines • ▼ Show 20 Lines | |||||
* initial open syscall. Those bits can thus be given a | * initial open syscall. Those bits can thus be given a | ||||
* different meaning for fcntl(2). | * different meaning for fcntl(2). | ||||
*/ | */ | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
/* Read ahead */ | /* Read ahead */ | ||||
#define FRDAHEAD O_CREAT | #define FRDAHEAD O_CREAT | ||||
#endif | #endif | ||||
#ifdef _KERNEL | |||||
#define FSEALABLE O_TRUNC | |||||
#endif | |||||
#if __POSIX_VISIBLE >= 200809 | #if __POSIX_VISIBLE >= 200809 | ||||
/* | /* | ||||
* Magic value that specify the use of the current working directory | * Magic value that specify the use of the current working directory | ||||
* 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 | ||||
Show All 36 Lines | |||||
#define F_READAHEAD 15 /* read ahead */ | #define F_READAHEAD 15 /* read ahead */ | ||||
#define F_RDAHEAD 16 /* Darwin compatible read ahead */ | #define F_RDAHEAD 16 /* Darwin compatible read ahead */ | ||||
#endif | #endif | ||||
#if __POSIX_VISIBLE >= 200809 | #if __POSIX_VISIBLE >= 200809 | ||||
#define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ | #define F_DUPFD_CLOEXEC 17 /* Like F_DUPFD, but FD_CLOEXEC is set */ | ||||
#endif | #endif | ||||
#if __BSD_VISIBLE | #if __BSD_VISIBLE | ||||
#define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */ | #define F_DUP2FD_CLOEXEC 18 /* Like F_DUP2FD, but FD_CLOEXEC is set */ | ||||
#define F_ADD_SEALS 19 | |||||
#define F_GET_SEALS 20 | |||||
#endif | #endif | ||||
/* Seals (F_ADD_SEALS, F_GET_SEALS */ | |||||
markj: Missing close paren and period. | |||||
#if __BSD_VISIBLE | |||||
#define F_SEAL_SEAL 0x0001 /* Prevent adding sealings */ | |||||
#define F_SEAL_SHRINK 0x0002 /* May not shrink */ | |||||
#define F_SEAL_GROW 0x0004 /* May not grow */ | |||||
#define F_SEAL_WRITE 0x0008 /* May not write */ | |||||
#ifdef _KERNEL | |||||
#define F_SEAL_TRUNCATE (F_SEAL_SHRINK | F_SEAL_GROW) | |||||
#endif /* _KERNEL */ | |||||
#endif /* __BSD_VISIBLE */ | |||||
/* file descriptor flags (F_GETFD, F_SETFD) */ | /* file descriptor flags (F_GETFD, F_SETFD) */ | ||||
#define FD_CLOEXEC 1 /* close-on-exec flag */ | #define FD_CLOEXEC 1 /* close-on-exec flag */ | ||||
/* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */ | /* record locking flags (F_GETLK, F_SETLK, F_SETLKW) */ | ||||
#define F_RDLCK 1 /* shared or read lock */ | #define F_RDLCK 1 /* shared or read lock */ | ||||
#define F_UNLCK 2 /* unlock */ | #define F_UNLCK 2 /* unlock */ | ||||
#define F_WRLCK 3 /* exclusive or write lock */ | #define F_WRLCK 3 /* exclusive or write lock */ | ||||
▲ Show 20 Lines • Show All 88 Lines • Show Last 20 Lines |
Missing close paren and period.