aboutsummaryrefslogtreecommitdiff
path: root/sys/sys/filio.h
diff options
context:
space:
mode:
authorPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-05 21:10:53 +0000
committerPawel Jakub Dawidek <pjd@FreeBSD.org>2007-04-05 21:10:53 +0000
commitf6521d1c31810b096dd15afff12cf194d1989a0a (patch)
treec358a7e9b774044c343bcf2b36dc569901065d03 /sys/sys/filio.h
parentf3a8d2f93ce69707ed05a48e89d884046f2d8a6a (diff)
downloadsrc-f6521d1c31810b096dd15afff12cf194d1989a0a.tar.gz
src-f6521d1c31810b096dd15afff12cf194d1989a0a.zip
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
Notes
Notes: svn path=/head/; revision=168397
Diffstat (limited to 'sys/sys/filio.h')
-rw-r--r--sys/sys/filio.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/sys/filio.h b/sys/sys/filio.h
index 8f2731a4e3fc..5f13288b70ce 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_ */