summaryrefslogtreecommitdiff
path: root/lib/unsetenv.c
Commit message (Collapse)AuthorAgeFilesLines
* version-etc: new yearPaul Eggert2014-12-311-1/+1
| | | | | | * doc/gnulib.texi: * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date. * all files: Run 'make update-copyright'.
* maint: update copyrightEric Blake2014-01-011-1/+1
| | | | | | I ran 'make update-copyright'. Signed-off-by: Eric Blake <eblake@redhat.com>
* unsetenv etc.: port to Solaris 11 + GNU EmacsPaul Eggert2013-02-111-2/+2
| | | | | | | | | | | * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c: * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c: * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>. GNU Emacs's <config.h> includes <stdlib.h> (which is not a great idea but is too painful to fix right now), and without this gnulib change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when compiling unsetenv.c on Solaris 11. Fix the problem for unsetenv.c, and fix other similar occurrences.
* maint: update all copyright year number rangesEric Blake2013-01-011-1/+1
| | | | | | Run "make update-copyright". Compare to commit 1602f0a from last year. Signed-off-by: Eric Blake <eblake@redhat.com>
* In commentary, do not use ` to quote.Paul Eggert2012-01-051-1/+1
|
* maint: update all copyright year number rangesJim Meyering2012-01-011-1/+1
| | | | Run "make update-copyright".
* unsetenv: Avoid gcc warning.Bruno Haible2011-06-051-0/+7
| | | | * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
* maint: update almost all copyright ranges to include 2011Jim Meyering2011-01-011-1/+1
| | | | Run the new "make update-copyright" rule.
* update nearly all FSF copyright year lists to include 2010Jim Meyering2010-01-011-1/+1
| | | | | Use the same procedure as for 2009, outlined in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
* New module 'arg-nonnull'. Declare which arguments expect non-NULL values.Bruno Haible2009-12-111-0/+4
|
* Use spaces for indentation, not tabs.Bruno Haible2009-12-101-9/+9
|
* unsetenv: work around Solaris bugEric Blake2009-11-171-2/+3
| | | | | | | | | | | unsetenv(name) only cleared the first instance, even if (ab)use of putenv, or assignment to environ, included duplicates of name. * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug. * lib/unsetenv.c (rpl_unsetenv): Work around it. Reported by Jim Meyering. Signed-off-by: Eric Blake <ebb9@byu.net>
* setenv, unsetenv: work around various bugsEric Blake2009-11-161-1/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | POSIX requires setenv(NULL,"",0), setenv("a=b","",0), unsetenv(NULL), and unsetenv("a=b") to fail with EINVAL, but many BSD implementations lack validation. The gnulib replacement for void unsetenv did not do validation, and the replacement for setenv was out of sync with glibc. Also, some BSD implementations of setenv("a","==",1) eat the leading '='. See also some recent Austin Group interpretations on environ: http://austingroupbugs.net/view.php?id=167 http://austingroupbugs.net/view.php?id=185 * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc. (setenv) [HAVE_SETENV]: Work around bugs. * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs. * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check for bugs. (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE. * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require. * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults. * modules/stdlib (Makefile.am): Update substitutions. * lib/stdlib.in.h (setenv, unsetenv): Update prototypes. * doc/posix-functions/setenv.texi (setenv): Document the bugs. * doc/posix-functions/unsetenv.texi (unsetenv): Likewise. * modules/setenv-tests: New test. * modules/unsetenv-tests: Likewise. * tests/test-setenv.c: New file. * tests/test-unsetenv.c: Likewise. Signed-off-by: Eric Blake <ebb9@byu.net>
* New module 'environ'.Bruno Haible2008-02-241-4/+1
|
* Split setenv module into setenv and unsetenv. Get rid of setenv.h.Bruno Haible2007-12-261-2/+4
|
* Change copyright notice from GPLv2+ to GPLv3+.Bruno Haible2007-10-071-6/+5
|
* Include <config.h> unconditionally.Bruno Haible2006-09-141-3/+1
|
* From Eric Blake: Assume errno.h declares errno.Bruno Haible2006-06-171-4/+1
|
* sync from coreutilsKarl Berry2006-03-221-2/+2
|
* undo last change -- this file is sync'd from gettextJim Meyering2006-02-271-5/+3
|
* Normalize inclusion of `config.h'.Jim Meyering2006-02-241-1/+1
|
* *** empty log message ***Paul Eggert2005-05-141-1/+1
|
* Propagating gettext into gnulib a bit better.Paul Eggert2004-04-131-1/+1
|
* Assume ANSI C <string.h>, <stdlib.h>.Bruno Haible2003-09-101-7/+3
|
* Update gettext source files from gettext automatically, using srclist-update.Paul Eggert2003-07-141-11/+10
|
* setenv and unsetenv.Bruno Haible2002-12-111-0/+104