aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-06 22:12:52 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-08-06 22:12:52 -0700
commit4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d (patch)
tree83554a7d15dbc7c8f5a8397ac6f6775f747fbde1 /include
parent7d95b6c73a642382b7ca0ee88dacdcdecc7432cb (diff)
downloadhistory-4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d.tar.gz
Add infrastructure for the VFS layer to mark files seekable.
We use a FMODE_LSEEK flag to match the existing read/write bits. This allows us to check for seekability on a VFS level for lseek/pread/pwrite, and cleans things up. Update some sites that used the numeric constants to use the symbolic values instead.
Diffstat (limited to 'include')
-rw-r--r--include/linux/fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 22dd6acdf9f1f2..44dbcaea3ebda2 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -74,6 +74,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time;
#define FMODE_READ 1
#define FMODE_WRITE 2
+#define FMODE_LSEEK 4 /* Internal kernel extension */
#define RW_MASK 1
#define RWA_MASK 2