gethostname.2: Mention UTS namespaces

Reported-by: Jakub Wilk <jwilk@jwilk.net>
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2019-08-26 22:57:11 +02:00
parent 30e022e516
commit 79ea68831f
1 changed files with 5 additions and 3 deletions

View 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)