patch-2.4.0-test9 linux/include/asm-mips/fcntl.h
Next file: linux/include/asm-mips/resource.h
Previous file: linux/include/asm-m68k/resource.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Fri Sep 22 14:21:20 2000
- Orig file:
v2.4.0-test8/linux/include/asm-mips/fcntl.h
- Orig date:
Wed Jul 5 11:13:39 2000
diff -u --recursive --new-file v2.4.0-test8/linux/include/asm-mips/fcntl.h linux/include/asm-mips/fcntl.h
@@ -56,6 +56,9 @@
#define F_EXLCK 4 /* or 3 */
#define F_SHLCK 8 /* or 4 */
+/* for leases */
+#define F_INPROGRESS 16
+
/* operations for bsd flock(), also used by the kernel implementation */
#define LOCK_SH 1 /* shared lock */
#define LOCK_EX 2 /* exclusive lock */
@@ -63,6 +66,11 @@
blocking */
#define LOCK_UN 8 /* remove lock */
+#define LOCK_MAND 32 /* This is a mandatory flock */
+#define LOCK_READ 64 /* ... Which allows concurrent read operations */
+#define LOCK_WRITE 128 /* ... Which allows concurrent write operations */
+#define LOCK_RW 192 /* ... Which allows concurrent read & write ops */
+
typedef struct flock {
short l_type;
short l_whence;
@@ -73,4 +81,5 @@
long pad[4]; /* ZZZZZZZZZZZZZZZZZZZZZZZZZZ */
} flock_t;
+#define F_LINUX_SPECIFIC_BASE 1024
#endif /* __ASM_MIPS_FCNTL_H */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)