Linux-man Archive on lore.kernel.org
 help / color / 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	[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	[flat|nested] 2+ messages in thread

end of thread, back to index

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)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org linux-man@archiver.kernel.org
	public-inbox-index linux-man


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/ public-inbox