]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/lseek.2: HISTORY: Update appearances of SEEK_{DATA,HOLE}
authorSeth McDonald <sethmcmail@pm.me>
Mon, 26 Jan 2026 12:28:59 +0000 (12:28 +0000)
committerAlejandro Colomar <alx@kernel.org>
Tue, 10 Feb 2026 23:58:22 +0000 (00:58 +0100)
SEEK_DATA and SEEK_HOLE appeared in Solaris no later than 2005-12-12,
when a ZFS developer stated in a blog post that "[a]t this [time of]
writing, SEEK_HOLE and SEEK_DATA are Solaris-specific."[1]  The release
notes for Solaris 10 are dated to 2005-12.[2]  So the constants were
likely added in Solaris 10.

They were added to FreeBSD on 2007-04-05,[3] before being released in
FreeBSD 7.0 - the release notes stating that "[s]upport for Sun's ZFS
has been added" for amd64, i386, and pc98.[4]

They were also added to DragonFly BSD on 2009-04-07,[5] before being
released in DragonFly BSD 2.3.1 (which strangely seems to have no
release notes).[6]

The commit adding the constants to DragonFly BSD states that the commit
contents were obtained from FreeBSD.[5]  So chronologically FreeBSD is
listed before DragonFly BSD.  And the commit adding them to FreeBSD
references their implementation in OpenSolaris.[3]  So chronologically
Solaris is listed before FreeBSD.

POSIX.1-2024 is also moved to the end of the list, since it was released
decades after any system discussed here.

[1] Bonwick, Jeff (12 Dec 2005).  "SEEK_HOLE and SEEK_DATA for sparse
files".  Jeff Bonwick's Weblog.  Archived on 25 Oct 2006.
<https://web.archive.org/web/20061025161241/http://blogs.sun.com/bonwick/entry/seek_hole_and_seek_data>
[2] Oracle (Dec 2005).  "Solaris 10 Release Notes".
<https://docs.oracle.com/cd/E19253-01/html/817-0552/index.html>
[3] Dawidek, Pawel Jakub (5 Apr 2007).  "Implement SEEK_DATA and
SEEK_HOLE extensions to lseek(2) as found in".  FreeBSD source tree (Git
repository).
<https://cgit.freebsd.org/src/commit/?id=f6521d1c31810b096dd15afff12cf194d1989a0a>
[4] The FreeBSD Project (15 May 2021).  "FreeBSD 7.0-RELEASE Release
Notes".  Section 2.2.5 "File Systems".
<https://www.freebsd.org/releases/7.0R/relnotes>
[5] Avalos, Peter (7 Apr 2009).  "Clean up sysconf and associated
headers".  DragonFly Project Source (Git repository).
<https://gitweb.dragonflybsd.org/dragonfly.git/commit/9d66746cf7a1da0544550266a1c5cb53e776aa01>
[6] Schubert, Simon (7 May 2009).  "Roll DragonFly 2.3.1".  DragonFly
Project Source (Git repository).
<https://gitweb.dragonflybsd.org/dragonfly.git/commit/33a70342dc4e7f9a4ad7c120a827234a33153ca4>

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <bcf9f5113f3c88ec1a3fa2bd9ec7a397b603f7c0.1769429341.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/lseek.2

index 1c52c39d557ce4a5b80dd0040f7072b8b49f77f2..6c1e6d9d5fe8170b07e8811df8801693793356cd 100644 (file)
@@ -211,8 +211,10 @@ POSIX.1-2001, SVr4, 4.3BSD.
 .B SEEK_DATA
 .TQ
 .B SEEK_HOLE
-POSIX.1-2024;
-Solaris, FreeBSD, DragonFly BSD.
+Solaris 10,
+FreeBSD 7.0,
+DragonFly BSD 2.3.1,
+POSIX.1-2024.
 .SH NOTES
 See
 .BR open (2)