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 /include | |
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 'include')
-rw-r--r-- | include/stdio.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/stdio.h b/include/stdio.h index 348db22..bf01429 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -200,6 +200,12 @@ __END_DECLS #ifndef SEEK_END #define SEEK_END 2 /* set file offset to EOF plus offset */ #endif +#ifndef SEEK_DATA +#define SEEK_DATA 3 /* set file offset to next data past offset */ +#endif +#ifndef SEEK_HOLE +#define SEEK_HOLE 4 /* set file offset to next hole past offset */ +#endif #define stdin __stdinp #define stdout __stdoutp |