Skip to contentSkip to conversation

getline.3: document ENOMEM error case

PATCH In review Jann Horn 2 participants 2 messages Dec 27, 2016 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore

Jann Horn

author
#0 lore raw

PATCH 1/1 getline.3: document ENOMEM error case

see the error handling in libio/iogetdelim.c

---
 man3/getline.3 | 3 +++
 1 file changed, 3 insertions(+)
man3/getline.3 +3 -0
index 7020777..5f1d9c8 100644
@@ -134,6 +134,9 @@ or
 is NULL, or
 .I stream
 is not valid).
+.TP
+.B ENOMEM
+Allocation or reallocation of the line buffer failed.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
Signature · 6 lines
2.8.0.rc3.226.g39d4020

--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Jann Horn

see the error handling in libio/iogetdelim.c

Thanks, Jann. Applied.

Cheers,

Michael

Quoted 19 lines
---
 man3/getline.3 | 3 +++
 1 file changed, 3 insertions(+)
man3/getline.3 +3 -0
index 7020777..5f1d9c8 100644
@@ -134,6 +134,9 @@ or
 is NULL, or
 .I stream
 is not valid).
+.TP
+.B ENOMEM
+Allocation or reallocation of the line buffer failed.
 .SH ATTRIBUTES
 For an explanation of the terms used in this section, see
 .BR attributes (7).
Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html