Changeset View
Changeset View
Standalone View
Standalone View
sys/sys/fcntl.h
Show First 20 Lines • Show All 281 Lines • ▼ Show 20 Lines | |||||
#define F_CANCEL 5 /* cancel an async lock request */ | #define F_CANCEL 5 /* cancel an async lock request */ | ||||
#endif | #endif | ||||
#ifdef _KERNEL | #ifdef _KERNEL | ||||
#define F_WAIT 0x010 /* Wait until lock is granted */ | #define F_WAIT 0x010 /* Wait until lock is granted */ | ||||
#define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ | #define F_FLOCK 0x020 /* Use flock(2) semantics for lock */ | ||||
#define F_POSIX 0x040 /* Use POSIX semantics for lock */ | #define F_POSIX 0x040 /* Use POSIX semantics for lock */ | ||||
#define F_REMOTE 0x080 /* Lock owner is remote NFS client */ | #define F_REMOTE 0x080 /* Lock owner is remote NFS client */ | ||||
#define F_NOINTR 0x100 /* Ignore signals when waiting */ | #define F_NOINTR 0x100 /* Ignore signals when waiting */ | ||||
#define F_FIRSTOPEN 0x200 /* First right to advlock file */ | |||||
#endif | #endif | ||||
/* | /* | ||||
* Advisory file segment locking data type - | * Advisory file segment locking data type - | ||||
* information passed to system by user | * information passed to system by user | ||||
*/ | */ | ||||
struct flock { | struct flock { | ||||
off_t l_start; /* starting offset */ | off_t l_start; /* starting offset */ | ||||
▲ Show 20 Lines • Show All 69 Lines • Show Last 20 Lines |