diff options
| author | David Howells <dhowells@redhat.com> | 2006-07-10 07:44:53 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-07-10 16:24:21 -0400 |
| commit | 01bf466e1866feeb7fce0319cbafe0166e29f5e4 (patch) | |
| tree | 9dc2bc9474e5bcef5628828a8b64708ec383ce74 /include | |
| parent | 8a2ab7f5df76b920d62b908919d987d3b8a82856 (diff) | |
[PATCH] FDPIC: Define SEEK_* constants in the Linux kernel headers
Add definitions for SEEK_SET, SEEK_CUR and SEEK_END to the kernel header
files.
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/fs.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 43aef9b230fd..25610205c90d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
| @@ -27,6 +27,10 @@ | |||
| 27 | #define BLOCK_SIZE_BITS 10 | 27 | #define BLOCK_SIZE_BITS 10 |
| 28 | #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS) | 28 | #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS) |
| 29 | 29 | ||
| 30 | #define SEEK_SET 0 /* seek relative to beginning of file */ | ||
| 31 | #define SEEK_CUR 1 /* seek relative to current file position */ | ||
| 32 | #define SEEK_END 2 /* seek relative to end of file */ | ||
| 33 | |||
| 30 | /* And dynamically-tunable limits and defaults: */ | 34 | /* And dynamically-tunable limits and defaults: */ |
| 31 | struct files_stat_struct { | 35 | struct files_stat_struct { |
| 32 | int nr_files; /* read only */ | 36 | int nr_files; /* read only */ |
