diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-05 21:10:53 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-05 21:10:53 +0000 |
commit | 4718e01f98485788a9f7b2defc77a984780db526 (patch) | |
tree | c358a7e9b774044c343bcf2b36dc569901065d03 /sys/sys/filio.h | |
parent | 7e73da14eb8410d6878c1e60cdb665d8a8c74c47 (diff) | |
download | FreeBSD-src-4718e01f98485788a9f7b2defc77a984780db526.zip FreeBSD-src-4718e01f98485788a9f7b2defc77a984780db526.tar.gz |
Implement SEEK_DATA and SEEK_HOLE extensions to lseek(2) as found in
OpenSolaris. For more information please refer to:
http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data
Diffstat (limited to 'sys/sys/filio.h')
-rw-r--r-- | sys/sys/filio.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/filio.h b/sys/sys/filio.h index 8f2731a..5f13288 100644 --- a/sys/sys/filio.h +++ b/sys/sys/filio.h @@ -55,5 +55,8 @@ struct fiodgname_arg { void *buf; }; #define FIODGNAME _IOW('f', 120, struct fiodgname_arg) /* get dev. name */ +/* Handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge. */ +#define FIOSEEKDATA _IOWR('f', 97, off_t) /* SEEK_DATA */ +#define FIOSEEKHOLE _IOWR('f', 98, off_t) /* SEEK_HOLE */ #endif /* !_SYS_FILIO_H_ */ |