diff options
author | Werner Koch <wk@gnupg.org> | 2002-08-09 20:13:41 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2002-08-09 20:13:41 +0200 |
commit | 5b0ccaf9494a69d1de5e34af0de344cb292c1f93 (patch) | |
tree | 7c0aa7568ead072d9263e37073d22d0ddf7e4109 /common/util.h | |
parent | Minor fixes (diff) | |
download | gnupg2-5b0ccaf9494a69d1de5e34af0de344cb292c1f93.tar.xz gnupg2-5b0ccaf9494a69d1de5e34af0de344cb292c1f93.zip |
* signal.c: New. Taken from GnuPG 1.1.91.
Diffstat (limited to 'common/util.h')
-rw-r--r-- | common/util.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/common/util.h b/common/util.h index f8db9d89c..a863f2078 100644 --- a/common/util.h +++ b/common/util.h @@ -1,5 +1,5 @@ /* util.h - Utility functions for Gnupg - * Copyright (C) 2001 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002 Free Software Foundation, Inc. * * This file is part of GnuPG. * @@ -61,6 +61,12 @@ time_t gnupg_get_time (void); void gnupg_set_time (time_t newtime, int freeze); int gnupg_faked_time_p (void); +/*-- signal.c --*/ +void gnupg_init_signals (int mode, void (*fast_cleanup)(void)); +void gnupg_pause_on_sigusr (int which); +void gnupg_block_all_signals (void); +void gnupg_unblock_all_signals (void); + /*-- replacement functions from funcname.c --*/ #if !HAVE_VASPRINTF @@ -75,7 +81,7 @@ typedef struct ssize_t (*read)(void*,char*,size_t); ssize_t (*write)(void*,const char*,size_t); int (*seek)(void*,off_t*,int); - int (*close)(coid*); + int (*close)(void*); } _IO_cookie_io_functions_t; typedef _IO_cookie_io_functions_t cookie_io_functions_t; FILE *fopencookie (void *cookie, const char *opentype, |