patch-2.2.8 linux/include/linux/fs.h
Next file: linux/include/linux/nfs_fs.h
Previous file: linux/include/linux/dcache.h
Back to the patch index
Back to the overall index
- Lines: 19
- Date:
Tue May 11 10:35:44 1999
- Orig file:
v2.2.7/linux/include/linux/fs.h
- Orig date:
Wed Apr 28 11:37:31 1999
diff -u --recursive --new-file v2.2.7/linux/include/linux/fs.h linux/include/linux/fs.h
@@ -810,6 +810,18 @@
#define PTR_ERR(ptr) ((long)(ptr))
#define IS_ERR(ptr) ((unsigned long)(ptr) > (unsigned long)(-1000))
+/*
+ * The bitmask for a lookup event:
+ * - follow links at the end
+ * - require a directory
+ * - ending slashes ok even for nonexistent files
+ * - internal "there are more path compnents" flag
+ */
+#define LOOKUP_FOLLOW (1)
+#define LOOKUP_DIRECTORY (2)
+#define LOOKUP_SLASHOK (4)
+#define LOOKUP_CONTINUE (8)
+
extern struct dentry * lookup_dentry(const char *, struct dentry *, unsigned int);
extern struct dentry * __namei(const char *, unsigned int);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)