Re: getdelim(3): perror -> err in example

2017-07-23 Thread Marc Espie
Another two cents: err exists on linux as well, so there is zero practical reason not to use it.

Re: getdelim(3): perror -> err in example

2017-07-22 Thread Jeremie Courreges-Anglas
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

Re: getdelim(3): perror -> err in example

2017-07-22 Thread Ingo Schwarze
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

Re: getdelim(3): perror -> err in example

2017-07-22 Thread Jeremie Courreges-Anglas
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

getdelim(3): perror -> err in example

2017-07-22 Thread Anton Lindqvist
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