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>
.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