Another two cents: err exists on linux as well, so there is zero practical
reason not to use it.
On Sun, Jul 23 2017, Ingo Schwarze wrote:
> Hi Jeremie,
>
> Jeremie Courreges-Anglas wrote on Sun, Jul 23, 2017 at 12:43:14AM +0200:
>
>> getline(3) and perror(3) are in posix, but fgetln(3) and err(3) come
>> from 4.4BSD (according to their manpage). We should probably keep
Hi Jeremie,
Jeremie Courreges-Anglas wrote on Sun, Jul 23, 2017 at 12:43:14AM +0200:
> getline(3) and perror(3) are in posix, but fgetln(3) and err(3) come
> from 4.4BSD (according to their manpage). We should probably keep the
> example code posix-compliant.
Paul Janzen asked me the same
On Sat, Jul 22 2017, Anton Lindqvist wrote:
> Hi,
> This changes the behavior of the example but makes it consistent with
> the example in fgetln(3) and many other manuals.
>
> Comments? OK?
getline(3) and perror(3) are in posix, but fgetln(3) and err(3) come
from
Hi,
This changes the behavior of the example but makes it consistent with
the example in fgetln(3) and many other manuals.
Comments? OK?
Index: getdelim.3
===
RCS file: /cvs/src/lib/libc/stdio/getdelim.3,v
retrieving revision 1.4