summaryrefslogtreecommitdiffstats
path: root/newlib/libc/stdlib/getenv_r.c
Commit message (Collapse)AuthorAgeFilesLines
* * libm/math/ef_sqrt.c: Delete unused variable sign.Corinna Vinschen2010-03-051-1/+0
| | | | | | | | | | | | * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a proper prototype, and is properly prototyped in stdlib.h, anyway. * libc/stdlib/getenv_r.c: Ditto. * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h. * libc/search/db_local.h: Correct __hash_open() prototype. * libc/sys/linux/cmath/math_private.h: Eliminate compiler warnings: Remove #define INFINITY (redefines from math.h); remove #define __isnanf and #define __isinff isinff.
* 2008-09-26 Craig Howland <howland@LGSInnovations.com>Jeff Johnston2008-09-261-8/+14
| | | | | * libc/stdlib/getenv_r.c (_getenv_r): Modify to not match if name contains an equal sign.
* 2008-09-24 Pawel Veselov <pawel.veselov@gmail.com>Jeff Johnston2008-09-251-8/+2
| | | | | | | | | | | | | | | Fix setenv/getenv/unsetenv to be OpenGroup compliant: * libc/include/stdlib.h (unsetenv, _unsetenv_r): Redefine with integer return types. * libc/stdlib/getenv_r.c (_findenv_r): Do no special processing with names that contain equal chars. * libc/stdlib/setenv.c: Redefine _unsetenv_r as returning int. * libc/stdlib/setenv_r.c (_setenv_r): Return -1 and set errno to EINVAL if name contains an equal sign. Do not remove any equal signs from the value. (_unsetenv_r): Modified to return int. Return -1 and set EINVAL if name contains equal sign. Return -1 if no variable(s) were found and return 0 otherwise.
* * Various formatting and whitespace changes.Thomas Fitzsimmons2002-04-301-1/+1
|
* 2002-04-01 Till Straumann <strauman@SLAC.Stanford.EDU>Jeff Johnston2002-04-011-1/+4
| | | | * libc/stdlib/getenv_r.c (_findenv_r): Add missing ENV_UNLOCK.
* 2001-02-22 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2001-02-221-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * libc/include/machine/setjmp-dj.h: With DJ Delorie's permission, changed the copyright information to allow free modification of the file with no reference to "copying.dj". * libc/include/sys/stat-dj.h: Ditto. * libc/machine/i386/setjmp.S: Ditto. * libc/sys/h8300hms/sys/file.h: Ditto. * libc/sys/sysmec/access.c: Ditto. * libc/sys/sysnecv850/access.c: Ditto. * libc/stdio/mktemp.c: Fixed typo for the word copyright. * libc/stdlib/getenv_r.c: Ditto. * libc/stdlib/putenv_r.c: Ditto. * libc/stdlib/setenv_r.c: Ditto. * libc/stdlib/getenv.c: Removed DJ reference since any possible modifications will now be in the _r version of this file. * libc/stdlib/putenv.c: Ditto. * libc/stdlib/setenv.c: Ditto. * libc/sys/go32/copying.dj: Removed DJ's address which is no longer valid. Added a reference to DJ's web page that contains his address. * libc/sys/go32/*.s: Removed references to DJ's old address. * libc/sys/go32/*.c: Ditto. * libc/sys/go32/*.h: Ditto. * libc/sys/go32/*.S: Ditto. * libc/sys/go32/sys/*.h: Ditto.
* Only reference environ indirectly through a pointerMichael Meissner2000-11-221-4/+9
|
* import newlib-2000-02-17 snapshotChristopher Faylor2000-02-171-0/+129