summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/getenv.c
AgeCommit message (Expand)Author
2025-04-27libc: Add getenv_r() function.Dag-Erling Smørgrav
2023-11-01libc: Purge unneeded cdefs.hWarner Losh
2023-08-16Remove $FreeBSD$: one-line .c patternWarner Losh
2023-05-12spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSDWarner Losh
2023-03-25secure_getenv: Add () around return valuesWarner Losh
2023-03-13Add GNU glibc compatible secure_getenvlucy
2023-03-12libc: move declaration of 'char **environ' to common private headerKonstantin Belousov
2022-04-09getenv(3): Fix two typos in source code commentsGordon Bergling
2021-11-07libc: add clearenv functionMariusz Zaborski
2017-11-25libc: further adoption of SPDX licensing ID tags.Pedro F. Giffuni
2017-03-13Minor libc cleanup: let calloc(3) do the multiplication.Pedro F. Giffuni
2017-03-12libc: provide some bounds-checking through reallocarray(3).Pedro F. Giffuni
2013-07-17[fix to r253380] __setenv: be explicit about placing '=' after nameAndriy Gapon
2013-07-16libc: name passed into __setenv is not necessarily NUL-terminatedAndriy Gapon
2012-10-03Optimize prev. commit for speed.Andrey A. Chernov
2012-10-02Using putenv() and later direct pointer contents modification it is possibeAndrey A. Chernov
2009-12-07Revert behavior change to setenv(), unsetenv() and putenv() until a moreSean Farley
2009-12-06Change the behavior of setenv(), putenv() and unsetenv() to continue parsingSean Farley
2009-12-06Improve the comment within getenv() explaining the search order it takes toSean Farley
2009-12-01Temporarily revert the previous change because the linker has beenBrian Feldman
2009-12-01Do not gratuitously fail *env(3) operations due to corrupt ('='-less)Brian Feldman
2008-08-03Restructure and use different variables in the tests that involveSean Farley
2008-08-02Detect if the application has cleared the environ variable by settingSean Farley
2008-02-28Replace the use of warnx() with direct output to stderr using _write().Sean Farley
2007-09-22The precision for a string argument in a call to warnx() needs to be castSean Farley
2007-09-15Skip rebuilding environ in setenv() only upon reuse of an active variable;Sean Farley
2007-07-20Added environ-replacement detection. For programs that "clean" (i.e., su)Sean Farley
2007-07-04Significantly reduce the memory leak as noted in BUGS section forSean Farley
2007-05-01Back out all POSIXified *env() changes.Andrey A. Chernov
2007-04-30Make putenv() fully conforms to Open Group specs Issue 6Andrey A. Chernov
2007-04-30Make setenv, putenv, getenv and unsetenv conforming to Open Group specsAndrey A. Chernov
2007-01-09Per Regents of the University of Calfornia letter, remove advertisingWarner Losh
2002-03-21Remove __P() usage.David E. O'Brien
2002-03-21Remove 'register' keyword.David E. O'Brien
1995-10-17Doubled the performance of getenv()/__findenv() by rewriting it to notDavid Greenman
1994-05-27BSD 4.4 Lite Lib SourcesRodney W. Grimes