Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH] setenv.3: wfix
@ 2020-05-11 17:58 Kir Kolyshkin
  2020-05-11 18:17 ` Michael Kerrisk (man-pages)
  0 siblings, 1 reply; 2+ messages in thread
From: Kir Kolyshkin @ 2020-05-11 17:58 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, Kir Kolyshkin

Both functions behave the same wrt return value, no need to describe
them separately.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
---
 man3/setenv.3 | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/man3/setenv.3 b/man3/setenv.3
index cd4fbcd6a..82acb0ce9 100644
--- a/man3/setenv.3
+++ b/man3/setenv.3
@@ -104,16 +104,10 @@ If
 does not exist in the environment,
 then the function succeeds, and the environment is unchanged.
 .SH RETURN VALUE
-The
 .BR setenv ()
-function returns zero on success,
-or \-1 on error, with
-.I errno
-set to indicate the cause of the error.
-.PP
-The
+and
 .BR unsetenv ()
-function returns zero on success,
+functions return zero on success,
 or \-1 on error, with
 .I errno
 set to indicate the cause of the error.
-- 
2.26.2


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

* Re: [PATCH] setenv.3: wfix
  2020-05-11 17:58 [PATCH] setenv.3: wfix Kir Kolyshkin
@ 2020-05-11 18:17 ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Kerrisk (man-pages) @ 2020-05-11 18:17 UTC (permalink / raw)
  To: Kir Kolyshkin; +Cc: linux-man

Hello Kir,

On Mon, 11 May 2020 at 19:58, Kir Kolyshkin <kolyshkin@gmail.com> wrote:
>
> Both functions behave the same wrt return value, no need to describe
> them separately.

Indeed. Patch applied.

Thanks,

Michael

> Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
> ---
>  man3/setenv.3 | 10 ++--------
>  1 file changed, 2 insertions(+), 8 deletions(-)
>
> diff --git a/man3/setenv.3 b/man3/setenv.3
> index cd4fbcd6a..82acb0ce9 100644
> --- a/man3/setenv.3
> +++ b/man3/setenv.3
> @@ -104,16 +104,10 @@ If
>  does not exist in the environment,
>  then the function succeeds, and the environment is unchanged.
>  .SH RETURN VALUE
> -The
>  .BR setenv ()
> -function returns zero on success,
> -or \-1 on error, with
> -.I errno
> -set to indicate the cause of the error.
> -.PP
> -The
> +and
>  .BR unsetenv ()
> -function returns zero on success,
> +functions return zero on success,
>  or \-1 on error, with
>  .I errno
>  set to indicate the cause of the error.
> --
> 2.26.2
>


-- 
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 --
2020-05-11 17:58 [PATCH] setenv.3: wfix Kir Kolyshkin
2020-05-11 18:17 ` 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
	public-inbox-index linux-man

Example config snippet for mirrors

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