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).
- todd