From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Jakub Wilk <jwilk@jwilk.net>
Cc: mtk.manpages@gmail.com, linux-man@vger.kernel.org
Subject: Re: [PATCH] gethostname.2: wfix
Date: Mon, 26 Aug 2019 23:02:20 +0200 [thread overview]
Message-ID: <4aaea00b-ed32-d29c-9440-3e52decb8084@gmail.com> (raw)
In-Reply-To: <20190826111155.9223-1-jwilk@jwilk.net>
Hello Jakub
On 8/26/19 1:11 PM, Jakub Wilk wrote:
> Signed-off-by: Jakub Wilk <jwilk@jwilk.net>
> ---
> 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/
prev parent reply other threads:[~2019-08-26 21:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-08-26 11:11 [PATCH] gethostname.2: wfix Jakub Wilk
2019-08-26 21:02 ` Michael Kerrisk (man-pages) [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4aaea00b-ed32-d29c-9440-3e52decb8084@gmail.com \
--to=mtk.manpages@gmail.com \
--cc=jwilk@jwilk.net \
--cc=linux-man@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).