Changeset View
Changeset View
Standalone View
Standalone View
head/sys/sys/fcntl.h
Show First 20 Lines • Show All 242 Lines • ▼ Show 20 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 */ | ||||
#endif | #define F_ADD_SEALS 19 | ||||
#define F_GET_SEALS 20 | |||||
/* Seals (F_ADD_SEALS, F_GET_SEALS). */ | |||||
#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 */ | |||||
#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 |