Paul Eggert wrote: > 2007-11-01 Paul Eggert <[EMAIL PROTECTED]> > > * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking > for compatibility with GNU.
Oh, the doc that I had provided is wrong. I'm realizing now that the 'putenv' module is not needed for POSIX compatibility. 2007-11-01 Bruno Haible <[EMAIL PROTECTED]> * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere" warning. * doc/functions/putenv.texi: Clarify that the 'putenv' module is not needed for POSIX compatibility. *** doc/functions/putenv.texi.orig 2007-11-02 00:12:22.000000000 +0100 --- doc/functions/putenv.texi 2007-11-02 00:04:26.000000000 +0100 *************** *** 4,19 **** POSIX specification: @url{http://www.opengroup.org/susv3xsh/putenv.html} ! Gnulib module: putenv Portability problems fixed by Gnulib: @itemize - @item - This function fails to remove environment variables correctly on some old - platforms: - SunOS 4.1.4. @end itemize Portability problems not fixed by Gnulib: @itemize @end itemize --- 4,19 ---- POSIX specification: @url{http://www.opengroup.org/susv3xsh/putenv.html} ! Gnulib module: --- Portability problems fixed by Gnulib: @itemize @end itemize Portability problems not fixed by Gnulib: @itemize @end itemize + + Extension: Gnulib provides a module @samp{putenv} that substitutes a + @code{putenv} implementation that can also be used to remove environment + variables. *** lib/stdlib.in.h.orig 2007-11-02 00:12:23.000000000 +0100 --- lib/stdlib.in.h 2007-11-02 00:05:04.000000000 +0100 *************** *** 173,184 **** # define putenv rpl_putenv extern int putenv (char *string); # endif - #elif defined GNULIB_POSIXCHECK - # undef putenv - # define putenv(s) \ - (GL_LINK_WARNING ("putenv is not POSIX compliant everywhere - " \ - "use gnulib module putenv for portability"), \ - putenv (s)) #endif --- 173,178 ----