Переглянути джерело

[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>
David Howells 19 роки тому
батько
коміт
01bf466e18
1 змінених файлів з 4 додано та 0 видалено
  1. 4 0
      include/linux/fs.h

+ 4 - 0
include/linux/fs.h

@@ -27,6 +27,10 @@
 #define BLOCK_SIZE_BITS 10
 #define BLOCK_SIZE_BITS 10
 #define BLOCK_SIZE (1<<BLOCK_SIZE_BITS)
 #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: */
 /* And dynamically-tunable limits and defaults: */
 struct files_stat_struct {
 struct files_stat_struct {
 	int nr_files;		/* read only */
 	int nr_files;		/* read only */