Re: [PATCH] setenv.3: wfix

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Kir,

On Mon, 11 May 2020 at 19:58, Kir Kolyshkin <kolyshkin@xxxxxxxxx> 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@xxxxxxxxx>
> ---
>  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/



[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux