Ignore:
Timestamp:
Aug 16, 2003, 6:59:22 PM (22 years ago)
Author:
bird
Message:

binutils v2.14 - offical sources.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/GNU/src/binutils/libiberty/setenv.c

    • Property cvs2svn:cvs-rev changed from 1.1 to 1.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.
    22   This file based on setenv.c in the GNU C Library.
    33
     
    1717   Boston, MA 02111-1307, USA.  */
    1818
     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,
     27the new value will be stored only if @var{overwrite} is nonzero.
     28The companion @code{unsetenv} function removes @var{name} from the
     29environment.  This implementation is not safe for multithreaded code.
     30
     31@end deftypefn
     32
     33*/
     34
    1935#if HAVE_CONFIG_H
    2036# include <config.h>
    2137#endif
     38
     39#define setenv libiberty_setenv
     40#define unsetenv libiberty_unsetenv
    2241
    2342#include "ansidecl.h"
     
    4564extern char **environ;
    4665#endif
     66
     67#undef setenv
     68#undef unsetenv
    4769
    4870/* LOCK and UNLOCK are defined as no-ops.  This makes the libiberty
Note: See TracChangeset for help on using the changeset viewer.