linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gethostname.2: wfix
@ 2019-08-26 11:11 Jakub Wilk
  2019-08-26 21:02 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Jakub Wilk @ 2019-08-26 11:11 UTC (permalink / raw)
  To: Michael Kerrisk; +Cc: linux-man

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
-- 
2.23.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gethostname.2: wfix
  2019-08-26 11:11 [PATCH] gethostname.2: wfix Jakub Wilk
@ 2019-08-26 21:02 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-08-26 21:02 UTC (permalink / raw)
  To: Jakub Wilk; +Cc: mtk.manpages, linux-man

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/

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-08-26 21:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-08-26 11:11 [PATCH] gethostname.2: wfix Jakub Wilk
2019-08-26 21:02 ` Michael Kerrisk (man-pages)

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