Welcome to mirror list, hosted at ThFree Co, Russian Federation.

signal.h « sys « linux « sys « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cef7058cd22551808a3712574b9827a5e164106d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* libc/sys/linux/sys/signal.h - Signal handling */

/* Written 2000 by Werner Almesberger */


#ifndef _SYS_SIGNAL_H
#define _SYS_SIGNAL_H
#define _SIGNAL_H

#include <sys/types.h>
#include <bits/sigset.h>
#include <bits/signum.h>

/* we want RT signals so we must override the definition of sigset_t
   and NSIG */

#undef NSIG
#define NSIG _NSIG
#undef sigset_t
#define sigset_t __sigset_t

typedef void (*_sig_func_ptr) (int);
typedef _sig_func_ptr __sighandler_t;

#include <bits/siginfo.h>
#include <bits/sigaction.h>
#include <bits/sigstack.h>

/* --- include/signal.h thinks it knows better :-( --- */

#undef SIG_DFL
#undef SIG_IGN
#undef SIG_ERR

/* --- redundant stuff below --- */

#include <_ansi.h>

int 	_EXFUN(kill, (int, int));
_VOID 	_EXFUN(psignal, (int, const char *));
int 	_EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *));
int 	_EXFUN(sigaddset, (sigset_t *, const int));
int 	_EXFUN(sigdelset, (sigset_t *, const int));
int 	_EXFUN(sigismember, (const sigset_t *, int));
int 	_EXFUN(sigfillset, (sigset_t *));
int 	_EXFUN(sigemptyset, (sigset_t *));
int 	_EXFUN(sigpending, (sigset_t *));
int 	_EXFUN(sigsuspend, (const sigset_t *));
int 	_EXFUN(sigpause, (int));

#ifndef _POSIX_SOURCE
extern const char *const sys_siglist[];
typedef __sighandler_t sig_t; /* BSDism */
#endif

#endif