Re: [PATCH] getline.3: clarify ERRORS.

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

 



Hi Elliott,

On Mon, Dec 16, 2024 at 08:57:14AM GMT, enh wrote:
> Signed-off-by: Elliott Hughes <enh@xxxxxxxxxx>

Patch applied.  Thanks!
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=84ace570934cccd419164f9bae0e8b0cbceaf6b8>

Have a lovely day!
Alex

> diff --git a/man/man3/getline.3 b/man/man3/getline.3
> index e1c5b0d63..ac1040db2 100644
> --- a/man/man3/getline.3
> +++ b/man/man3/getline.3
> @@ -95,11 +95,13 @@ but not including the terminating null byte (\[aq]\[rs]0\[aq]).
>  This value can be used
>  to handle embedded null bytes in the line read.
>  .P
> -Both functions return \-1 on failure to read a line (including end-of-file
> -condition).
> -In the event of a failure,
> +At end of file,
> +both functions return \-1 with the file stream end-of-file indicator set.
> +On error,
> +both functions return \-1 with the file stream error indicator set,
> +and with
>  .I errno
> -is set to indicate the error.
> +set to indicate the error.
>  .P
>  If
>  .I *lineptr


-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[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