]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
gethostname.2: Mention UTS namespaces
authorMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 26 Aug 2019 20:57:11 +0000 (22:57 +0200)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Mon, 26 Aug 2019 21:14:49 +0000 (23:14 +0200)
Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/gethostname.2

index 4659337ccc1eff2e45b1227c86edca22160d3daf..a07d06fa584f11fd7f79f074a17c425d72a6cabc 100644 (file)
@@ -67,8 +67,9 @@ _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500
 .PD
 .ad
 .SH DESCRIPTION
-These system calls are used to access or to change the hostname of the
-current processor.
+These system calls are used to access or to change the system hostname.
+More precisely, they operate on the hostname associated with the calling
+process's UTS namespace.
 .PP
 .BR sethostname ()
 sets the hostname to the value given in the character array
@@ -184,4 +185,5 @@ set to
 .BR hostname (1),
 .BR getdomainname (2),
 .BR setdomainname (2),
-.BR uname (2)
+.BR uname (2),
+.BR uts_namespaces (7)