* [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 related [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, other threads:[~2020-05-11 18:17 UTC | newest]
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)
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).