Changeset 609 for branches/GNU/src/binutils/libiberty/setenv.c
- Timestamp:
- Aug 16, 2003, 6:59:22 PM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/GNU/src/binutils/libiberty/setenv.c
-
Property cvs2svn:cvs-rev
changed from
1.1
to1.1.1.2
r608 r609 1 /* Copyright (C) 1992, 1995, 1996, 1997 Free Software Foundation, Inc.1 /* Copyright (C) 1992, 1995, 1996, 1997, 2002 Free Software Foundation, Inc. 2 2 This file based on setenv.c in the GNU C Library. 3 3 … … 17 17 Boston, MA 02111-1307, USA. */ 18 18 19 20 /* 21 22 @deftypefn Supplemental int setenv (const char *@var{name}, const char *@var{value}, int @var{overwrite}) 23 @deftypefnx Supplemental void unsetenv (const char *@var{name}) 24 25 @code{setenv} adds @var{name} to the environment with value 26 @var{value}. If the name was already present in the environment, 27 the new value will be stored only if @var{overwrite} is nonzero. 28 The companion @code{unsetenv} function removes @var{name} from the 29 environment. This implementation is not safe for multithreaded code. 30 31 @end deftypefn 32 33 */ 34 19 35 #if HAVE_CONFIG_H 20 36 # include <config.h> 21 37 #endif 38 39 #define setenv libiberty_setenv 40 #define unsetenv libiberty_unsetenv 22 41 23 42 #include "ansidecl.h" … … 45 64 extern char **environ; 46 65 #endif 66 67 #undef setenv 68 #undef unsetenv 47 69 48 70 /* LOCK and UNLOCK are defined as no-ops. This makes the libiberty -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.