From 4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Fri, 6 Aug 2004 22:12:52 -0700 Subject: 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. --- include/linux/fs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/linux') diff --git a/include/linux/fs.h b/include/linux/fs.h index 22dd6acdf9f1..44dbcaea3ebd 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 -- cgit v1.2.3