Re: getdelim(3) manpage fails to mention ENOMEM

2017-08-12 Thread René Scharfe
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 c

Re: getdelim(3) manpage fails to mention ENOMEM

2017-08-12 Thread 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/

getdelim(3) manpage fails to mention ENOMEM

2017-08-12 Thread René Scharfe
Hi all, 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. René