Re: 01-getnline.diff
Jim Meyering <[email protected]>
| Newsgroups | gmane.comp.lib.gnulib.bugs,gmane.comp.version-control.cvs.bugs |
|---|---|
| Message-ID | <[email protected]> |
Derek Robert Price <[email protected]> wrote: ... > Incidentally, my glibc defines both getdelim & getline to return > ssize_t. Is it intentional that the GNULIB versions return int > instead? It looks like getline's `int' return type in gnulib is purely historical. It dates back to the earliest revision I have, from textutils-1.12 (1995). I see no reason for such a limitation. ssize_t makes more sense. FWIW, I too needed getdelim2 for coreutils, and moved it into a separate file there. If you do something similar for gnulib before I get to it, that'd be great.