Hello Jakub On 8/26/19 1:11 PM, Jakub Wilk wrote: > Signed-off-by: Jakub Wilk <jwilk@xxxxxxxxx> > --- > man2/gethostname.2 | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/man2/gethostname.2 b/man2/gethostname.2 > index 4659337cc..5d6c20b0b 100644 > --- a/man2/gethostname.2 > +++ b/man2/gethostname.2 > @@ -68,7 +68,7 @@ _BSD_SOURCE || _XOPEN_SOURCE\ >=\ 500 > .ad > .SH DESCRIPTION > These system calls are used to access or to change the hostname of the > -current processor. > +current machine. > .PP > .BR sethostname () > sets the hostname to the value given in the character array Instead, I applied the patch below. Thanks, Michael diff --git a/man2/gethostname.2 b/man2/gethostname.2 index 4659337cc..a07d06fa5 100644 --- a/man2/gethostname.2 +++ b/man2/gethostname.2 @@ -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) -- Michael Kerrisk Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/ Linux/UNIX System Programming Training: http://man7.org/training/