~ubuntu-branches/ubuntu/oneiric/gnupg2/oneiric-updates

« back to all changes in this revision

Viewing changes to gl/unsetenv.c

  • Committer: Bazaar Package Importer
  • Author(s): Thomas Viehmann
  • Date: 2008-10-04 10:25:53 UTC
  • mfrom: (5.1.15 intrepid)
  • Revision ID: james.westby@ubuntu.com-20081004102553-fv62pp8dsitxli47
Tags: 2.0.9-3.1
* Non-maintainer upload.
* agent/gpg-agent.c: Deinit the threading library before exec'ing
  the command to run in --daemon mode. And because that still doesn't
  restore the sigprocmask, do that manually. Closes: #499569

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* Copyright (C) 1992,1995-1999,2000-2002 Free Software Foundation, Inc.
 
1
/* Copyright (C) 1992,1995-1999,2000-2002,2005-2006 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
5
5
   it under the terms of the GNU General Public License as published by
6
 
   the Free Software Foundation; either version 2, or (at your option)
 
6
   the Free Software Foundation; either version 3, or (at your option)
7
7
   any later version.
8
8
 
9
9
   This program is distributed in the hope that it will be useful,
12
12
   GNU General Public License for more details.
13
13
 
14
14
   You should have received a copy of the GNU General Public License along
15
 
   with this program; if not, write to the Free Software Foundation,
16
 
   Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
 
15
   with this program; if not, see <http://www.gnu.org/licenses/>.  */
17
16
 
18
 
#if HAVE_CONFIG_H
19
 
# include <config.h>
20
 
#endif
 
17
#include <config.h>
21
18
 
22
19
#include <errno.h>
23
20
#if !_LIBC
24
 
# if !defined errno && !defined HAVE_ERRNO_DECL
25
 
extern int errno;
26
 
# endif
27
21
# define __set_errno(ev) ((errno) = (ev))
28
22
#endif
29
23
 
30
24
#include <stdlib.h>
31
25
#include <string.h>
32
 
#if _LIBC || HAVE_UNISTD_H
33
 
# include <unistd.h>
34
 
#endif
 
26
#include <unistd.h>
35
27
 
36
28
#if !_LIBC
37
29
# define __environ      environ