patch-2.4.0-test9 linux/include/linux/fcntl.h
Next file: linux/include/linux/fs.h
Previous file: linux/include/linux/ext2_fs_sb.h
Back to the patch index
Back to the overall index
- Lines: 25
- Date:
Fri Sep 22 14:21:22 2000
- Orig file:
v2.4.0-test8/linux/include/linux/fcntl.h
- Orig date:
Fri Aug 11 15:08:03 2000
diff -u --recursive --new-file v2.4.0-test8/linux/include/linux/fcntl.h linux/include/linux/fcntl.h
@@ -3,4 +3,24 @@
#include <asm/fcntl.h>
+#define F_SETLEASE (F_LINUX_SPECIFIC_BASE+0)
+#define F_GETLEASE (F_LINUX_SPECIFIC_BASE+1)
+
+/*
+ * Request nofications on a directory.
+ * See below for events that may be notified.
+ */
+#define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
+
+/*
+ * Types of directory notifications that may be requested.
+ */
+#define DN_ACCESS 0x00000001 /* File accessed */
+#define DN_MODIFY 0x00000002 /* File modified */
+#define DN_CREATE 0x00000004 /* File created */
+#define DN_DELETE 0x00000008 /* File removed */
+#define DN_RENAME 0x00000010 /* File renamed */
+#define DN_ATTRIB 0x00000020 /* File changed attibutes */
+#define DN_MULTISHOT 0x80000000 /* Don't remove notifier */
+
#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)