Am 12.08.2017 um 15:54 schrieb Todd C. Miller: > On Sat, 12 Aug 2017 14:51:59 +0200, =?UTF-8?Q?Ren=c3=a9_Scharfe?= wrote: > >> getdelim(3) and getline(3) fail if they are unable to allocate >> enough memory to hold a line. recallocarray(3) will set errno to >> ENOMEM in that case. This fact is currently not mentioned in the >> ERRORS section of lib/libc/stdio/getdelim.3. > > You missed the following in the manual: > > The getdelim() and getline() functions may also fail and set > errno for any of the errors specified in the routines fflush(3), > malloc(3), read(2), stat(2), or realloc(3).
Thanks for the quick reply! Indeed I did. Sorry for the noise. A full list (automatically generated?) would be easier to read for people with very short attention spans like me, but the duplication might annoy everybody else, I guess. René