]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man/man3/getline.3: Clarify ERRORS
authorenh <enh@google.com>
Mon, 16 Dec 2024 13:57:14 +0000 (08:57 -0500)
committerAlejandro Colomar <alx@kernel.org>
Wed, 18 Dec 2024 18:03:24 +0000 (19:03 +0100)
Signed-off-by: Elliott Hughes <enh@google.com>
Message-ID: <CAJgzZoruFUg6X=JUNJXCbBOKs13SX=dsNFNdTMct2VecUFG=ww@mail.gmail.com>
Signed-off-by: Alejandro Colomar <alx@kernel.org>
man/man3/getline.3

index e1c5b0d637643e668ca546203248e40be92aa486..ac1040db2ab99fa1c53962b0324dbce2e566067e 100644 (file)
@@ -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