Mercurial > hg > octave-lyh > gnulib-hg
changeset 9436:2d7c5fcef943
Fix documentation about what the 'putenv' module provides.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 02 Nov 2007 00:17:19 +0100 |
parents | 1622176e7160 |
children | 1fc52d590529 |
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 +++ 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
--- 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.
--- a/lib/stdlib.in.h +++ b/lib/stdlib.in.h @@ -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