~ubuntu-branches/ubuntu/trusty/patch/trusty-security

« back to all changes in this revision

Viewing changes to lib/unsetenv.c

  • Committer: Package Import Robot
  • Author(s): Christoph Berg
  • Date: 2013-01-03 17:34:45 UTC
  • mto: (6.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 12.
  • Revision ID: package-import@ubuntu.com-20130103173445-5vf8qmnfgd7ug67h
Tags: upstream-2.7.1
ImportĀ upstreamĀ versionĀ 2.7.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1992, 1995-2002, 2005-2011 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1992, 1995-2002, 2005-2012 Free Software Foundation, Inc.
2
2
   This file is part of the GNU C Library.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
36
36
#endif
37
37
 
38
38
#if _LIBC
39
 
/* This lock protects against simultaneous modifications of `environ'.  */
 
39
/* This lock protects against simultaneous modifications of 'environ'.  */
40
40
# include <bits/libc-lock.h>
41
41
__libc_lock_define_initialized (static, envlock)
42
42
# define LOCK   __libc_lock_lock (envlock)
97
97
#else /* HAVE_UNSETENV */
98
98
 
99
99
# undef unsetenv
 
100
# if !HAVE_DECL_UNSETENV
 
101
#  if VOID_UNSETENV
 
102
extern void unsetenv (const char *);
 
103
#  else
 
104
extern int unsetenv (const char *);
 
105
#  endif
 
106
# endif
100
107
 
101
108
/* Call the underlying unsetenv, in case there is hidden bookkeeping
102
109
   that needs updating beyond just modifying environ.  */