1
/* sysutils.h - System utility functions for Gnupg
2
* Copyright (C) 2002 Free Software Foundation, Inc.
4
* This file is part of GnuPG.
6
* GnuPG is free software; you can redistribute it and/or modify
7
* it under the terms of the GNU General Public License as published by
8
* the Free Software Foundation; either version 2 of the License, or
9
* (at your option) any later version.
11
* GnuPG is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
21
#ifndef GNUPG_COMMON_SYSUTILS_H
22
#define GNUPG_COMMON_SYSUTILS_H
24
void trap_unaligned (void);
25
int disable_core_dumps (void);
26
int enable_core_dumps (void);
27
const unsigned char *get_session_marker (size_t *rlen);
28
int check_permissions (const char *path,int extension,int checkonly);
30
#ifdef HAVE_W32_SYSTEM
31
/* Windows declares sleep as obsolete, but provides a definition for
32
_sleep but non for the still existing sleep. */
33
#define sleep(a) _sleep ((a))
36
char *read_w32_registry_string( const char *root,
37
const char *dir, const char *name );
38
int write_w32_registry_string(const char *root, const char *dir,
39
const char *name, const char *value);
41
#endif /*HAVE_W32_SYSTEM*/
46
#endif /*GNUPG_COMMON_SYSUTILS_H*/