From 79ea68831f7b72647b3c3dd0019ffc40220eed4b Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Mon, 26 Aug 2019 22:57:11 +0200 Subject: [PATCH] gethostname.2: Mention UTS namespaces Reported-by: Jakub Wilk Signed-off-by: Michael Kerrisk --- man2/gethostname.2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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)