Cygwin: mmap: allow remapping part of an existing anonymous mapping
[newlib-cygwin.git] / newlib / libc / include / signal.h
blob23a9863e6688a04f1429044ba76dc91d67b63446
1 #ifndef _SIGNAL_H_
2 #define _SIGNAL_H_
4 #include "_ansi.h"
5 #include <sys/cdefs.h>
6 #include <sys/signal.h>
8 _BEGIN_STD_C
10 typedef int sig_atomic_t; /* Atomic entity type (ANSI) */
11 #if __BSD_VISIBLE
12 typedef _sig_func_ptr sig_t; /* BSD naming */
13 #endif
14 #if __GNU_VISIBLE
15 typedef _sig_func_ptr sighandler_t; /* glibc naming */
16 #endif
18 #define SIG_DFL ((_sig_func_ptr)0) /* Default action */
19 #define SIG_IGN ((_sig_func_ptr)1) /* Ignore action */
20 #define SIG_ERR ((_sig_func_ptr)-1) /* Error return */
22 struct _reent;
24 _sig_func_ptr _signal_r (struct _reent *, int, _sig_func_ptr);
25 int _raise_r (struct _reent *, int);
27 #ifndef _REENT_ONLY
28 _sig_func_ptr signal (int, _sig_func_ptr);
29 int raise (int);
30 void psignal (int, const char *);
31 #endif
33 _END_STD_C
35 #endif /* _SIGNAL_H_ */