]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man2/gethostname.2: HISTORY: Split gethostname(2) and sethostname(2)
authorSeth McDonald <sethmcmail@pm.me>
Thu, 22 Jan 2026 02:25:25 +0000 (02:25 +0000)
committerAlejandro Colomar <alx@kernel.org>
Fri, 23 Jan 2026 15:53:33 +0000 (16:53 +0100)
gethostname(2) first appeared in POSIX.1-2001.[1]

[1] IEEE Std 1003.1-2001, Volume 2, Chapter 3 "System Interfaces", p.
516.
<https://pubs.opengroup.org/onlinepubs/009604499/functions/gethostname.html>

Signed-off-by: Seth McDonald <sethmcmail@pm.me>
Message-ID: <94b81d0f1c2b0d082b5b8510d86ba235c21a3069.1769047228.git.sethmcmail@pm.me>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man2/gethostname.2

index d657bfd7fc0df63a8df9f54d1a14038260653ebd..b5fbb9b2a012f2fc37c76c2931b78278c9b61e03 100644 (file)
@@ -145,11 +145,15 @@ POSIX.1-2024.
 .BR sethostname ()
 None.
 .SH HISTORY
-SVr4, 4.4BSD (these interfaces first appeared in 4.2BSD).
-POSIX.1 specifies
+.TP
 .BR gethostname ()
-but not
-.BR sethostname ().
+4.2BSD,
+SVr4,
+POSIX.1-2001.
+.TP
+.BR sethostname ()
+4.2BSD,
+SVr4.
 .P
 Versions of glibc before glibc 2.2
 .\" At least glibc 2.0 and glibc 2.1, older versions not checked