linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Michael Kerrisk (man-pages)" <mtk.manpages@gmail.com>
To: Kir Kolyshkin <kolyshkin@gmail.com>
Cc: linux-man <linux-man@vger.kernel.org>
Subject: Re: [PATCH] setenv.3: wfix
Date: Mon, 11 May 2020 20:17:36 +0200	[thread overview]
Message-ID: <CAKgNAki+-nEergMEFJdU2_TPUC+9x9YX8w8UdGb1vyP_Jex2WA@mail.gmail.com> (raw)
In-Reply-To: <20200511175826.1529435-1-kolyshkin@gmail.com>

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/

      reply	other threads:[~2020-05-11 18:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-05-11 17:58 [PATCH] setenv.3: wfix Kir Kolyshkin
2020-05-11 18:17 ` 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=CAKgNAki+-nEergMEFJdU2_TPUC+9x9YX8w8UdGb1vyP_Jex2WA@mail.gmail.com \
    --to=mtk.manpages@gmail.com \
    --cc=kolyshkin@gmail.com \
    --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).