]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - include/linux/fs.h
[PATCH] FDPIC: Define SEEK_* constants in the Linux kernel headers
[karo-tx-linux.git] / include / linux / fs.h
index 134b320682467fa84045e8cb7e8c68d2f20a7108..25610205c90d09e75ea827ae83ca0ebc9dc3445f 100644 (file)
 #define BLOCK_SIZE_BITS 10
 #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
 
+#define SEEK_SET       0       /* seek relative to beginning of file */
+#define SEEK_CUR       1       /* seek relative to current file position */
+#define SEEK_END       2       /* seek relative to end of file */
+
 /* And dynamically-tunable limits and defaults: */
 struct files_stat_struct {
        int nr_files;           /* read only */
@@ -716,6 +720,7 @@ extern spinlock_t files_lock;
 #define FL_POSIX       1
 #define FL_FLOCK       2
 #define FL_ACCESS      8       /* not trying to lock, just looking */
+#define FL_EXISTS      16      /* when unlocking, test for existence */
 #define FL_LEASE       32      /* lease held on this file */
 #define FL_CLOSE       64      /* unlock on close */
 #define FL_SLEEP       128     /* A blocking lock */