Eric Blake wrote: > Here's what I'm committing; I think it addresses all your points. > > 2007-08-22 Eric Blake <[EMAIL PROTECTED]> > > Getline touchups. > * lib/getdelim.c (getdelim): Revert regression that required *n to > be 0 when *lineptr is NULL. Preserve errno across funlockfile. > * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of > getdelim, rather than whether implementation is missing. > * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline. > * lib/stdio_.h (getline): Also declare if replacement is > required. > * doc/functions/getdelim.texi: New file. > * doc/functions/getline.texi: Likewise. > * doc/gnulib.texi (Function Substitutes): Add new files. > Reported by Bruno Haible.
Thanks. Let me update the documentation: I got the list of platforms lacking the functions from the various-symlists package [1]. [1] http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00000.html 2007-09-09 Bruno Haible <[EMAIL PROTECTED]> * doc/functions/getdelim.texi: Update list of platforms lacking the function. * doc/functions/getline.texi: Likewise. --- doc/functions/getdelim.texi 23 Aug 2007 02:00:19 -0000 1.1 +++ doc/functions/getdelim.texi 9 Sep 2007 17:14:07 -0000 @@ -2,8 +2,8 @@ @section @code{getdelim} @findex getdelim -POSIX specification: Draft 3 of 200x; free membership at [EMAIL PROTECTED]://www.opengroup.org/austin/} is required +POSIX specification: Draft 3 of 200x; to access it, free membership at [EMAIL PROTECTED]://www.opengroup.org/austin/} is required. Gnulib module: getdelim @@ -11,11 +11,10 @@ @itemize @item This function is missing on some platforms: -mingw - +MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, Interix 3.5. @item This function is missing a declaration on some platforms: -BeOS +BeOS. @end itemize Portability problems not fixed by Gnulib: --- doc/functions/getline.texi 23 Aug 2007 02:00:19 -0000 1.1 +++ doc/functions/getline.texi 9 Sep 2007 17:14:07 -0000 @@ -2,8 +2,8 @@ @section @code{getline} @findex getline -POSIX specification: Draft 3 of 200x; free membership at [EMAIL PROTECTED]://www.opengroup.org/austin/} is required +POSIX specification: Draft 3 of 200x; to access it, free membership at [EMAIL PROTECTED]://www.opengroup.org/austin/} is required. Gnulib module: getline @@ -11,12 +11,10 @@ @itemize @item This function is missing on some platforms: -mingw - +MacOS X 10.3, FreeBSD 6.0, NetBSD 3.0, OpenBSD 3.8, AIX 5.1, HP-UX 11, IRIX 6.5, OSF/1 5.1, Solaris 10, mingw, Interix 3.5. @item This function is missing a declaration on some platforms: -BeOS - +BeOS. @item Some platforms provide a function by this name but with the wrong signature, for example in -linet.