changeset 29127:14a7a19487d1

Fix documentation about what the 'putenv' module provides.
author Bruno Haible <bruno@clisp.org>
date Fri, 02 Nov 2007 00:17:19 +0100
parents 5e071fce3668
children aa926a8978df
files ChangeLog doc/functions/putenv.texi lib/stdlib.in.h
diffstat 3 files changed, 12 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Nov 01 09:19:14 2007 -0700
+++ b/ChangeLog	Fri Nov 02 00:17:19 2007 +0100
@@ -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
--- a/doc/functions/putenv.texi	Thu Nov 01 09:19:14 2007 -0700
+++ b/doc/functions/putenv.texi	Fri Nov 02 00:17:19 2007 +0100
@@ -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.
--- a/lib/stdlib.in.h	Thu Nov 01 09:19:14 2007 -0700
+++ b/lib/stdlib.in.h	Fri Nov 02 00:17:19 2007 +0100
@@ -173,12 +173,6 @@
 #  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