From: Bruno Haible Date: Thu, 1 Nov 2007 23:17:19 +0000 (+0100) Subject: Fix documentation about what the 'putenv' module provides. X-Git-Tag: v0.1~8014 X-Git-Url: http://erislabs.net/gitweb/?a=commitdiff_plain;h=5634021557088bb1e87ae702c67530c1958181c8;p=gnulib.git Fix documentation about what the 'putenv' module provides. --- diff --git a/ChangeLog b/ChangeLog index c34257d01..3101bc9ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2007-11-01 Bruno Haible + + * 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. + 2007-11-01 Paul Eggert * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking diff --git a/doc/functions/putenv.texi b/doc/functions/putenv.texi index 5c9cc9159..20306d8a4 100644 --- a/doc/functions/putenv.texi +++ b/doc/functions/putenv.texi @@ -4,16 +4,16 @@ POSIX specification: @url{http://www.opengroup.org/susv3xsh/putenv.html} -Gnulib module: putenv +Gnulib module: --- 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 + +Extension: Gnulib provides a module @samp{putenv} that substitutes a +@code{putenv} implementation that can also be used to remove environment +variables. diff --git a/lib/stdlib.in.h b/lib/stdlib.in.h index 7221ba245..dc9f98f8d 100644 --- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -173,12 +173,6 @@ extern int mkstemp (char * /*template*/); # 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