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 /lib/libc/sys/pathconf.2 | |
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 'lib/libc/sys/pathconf.2')
-rw-r--r-- | lib/libc/sys/pathconf.2 | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/libc/sys/pathconf.2 b/lib/libc/sys/pathconf.2 index e3c17d6..968f307 100644 --- a/lib/libc/sys/pathconf.2 +++ b/lib/libc/sys/pathconf.2 @@ -144,6 +144,17 @@ otherwise 0. .It Li _PC_MAC_PRESENT Returns 1 if a Mandatory Access Control (MAC) label can be set on the specified file, otherwise 0. +.It Li _PC_MIN_HOLE_SIZE +If a file system supports the reporting of holes (see +.Xr lseek 2 , +.Fn pathconf +and +.Fn fpathconf +return a positive number that represents the minimum hole size returned in +bytes. +The offsets of holes returned will be aligned to this same value. +A special value of 1 is returned if the file system does not specify the minimum +hole size but still reports holes. .El .Sh RETURN VALUES If the call to @@ -216,6 +227,7 @@ is not a valid open file descriptor. An I/O error occurred while reading from or writing to the file system. .El .Sh SEE ALSO +.Xr lseek 2 , .Xr sysctl 3 .Sh HISTORY The |