Skip to content

Commit

Permalink
[PATCH] FDPIC: Define SEEK_* constants in the Linux kernel headers
Browse files Browse the repository at this point in the history
Add definitions for SEEK_SET, SEEK_CUR and SEEK_END to the kernel header
files.

Signed-off-by: David Howells <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
dhowells authored and Linus Torvalds committed Jul 10, 2006
1 parent 8a2ab7f commit 01bf466
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/linux/fs.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
#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 */
Expand Down

0 comments on commit 01bf466

Please sign in to comment.