]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - include/linux/fs.h
use use SEEK_MAX to validate user lseek arguments
[net-next-2.6.git] / include / linux / fs.h
index 020a8426e10a248b8876dc71ca6aa448a66c9e76..986b5d5d369fe59da11f005578f698767110013f 100644 (file)
@@ -30,6 +30,7 @@
 #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 */
+#define SEEK_MAX       SEEK_END
 
 /* And dynamically-tunable limits and defaults: */
 struct files_stat_struct {