patch-2.4.0-test9 linux/include/asm-alpha/fcntl.h
Next file: linux/include/asm-alpha/resource.h
Previous file: linux/include/asm-alpha/elf.h
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Wed Sep 27 13:39:23 2000
- Orig file:
v2.4.0-test8/linux/include/asm-alpha/fcntl.h
- Orig date:
Fri Aug 11 14:37:49 2000
diff -u --recursive --new-file v2.4.0-test8/linux/include/asm-alpha/fcntl.h linux/include/asm-alpha/fcntl.h
@@ -48,13 +48,19 @@
#define F_EXLCK 16 /* or 3 */
#define F_SHLCK 32 /* or 4 */
+#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 */
#define LOCK_NB 4 /* or'd with one of the above to prevent
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 */
+
struct flock {
short l_type;
short l_whence;
@@ -66,5 +72,6 @@
#ifdef __KERNEL__
#define flock64 flock
#endif
+#define F_LINUX_SPECIFIC_BASE 1024
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)