Fix documentation about what the 'putenv' module provides.
authorBruno Haible <bruno@clisp.org>
Thu, 1 Nov 2007 23:17:19 +0000 (00:17 +0100)
committerBruno Haible <bruno@clisp.org>
Thu, 1 Nov 2007 23:17:19 +0000 (00:17 +0100)
ChangeLog
doc/functions/putenv.texi
lib/stdlib.in.h

index c34257d..3101bc9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2007-11-01  Bruno Haible  <bruno@clisp.org>
+
+       * 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  <eggert@cs.ucla.edu>
 
        * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
index 5c9cc91..20306d8 100644 (file)
@@ -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.
index 7221ba2..dc9f98f 100644 (file)
@@ -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