source: trunk/libs/newlib/src/newlib/libc/include/signal.h @ 444

Last change on this file since 444 was 444, checked in by satin@…, 6 years ago

add newlib,libalmos-mkh, restructure shared_syscalls.h and mini-libc

File size: 774 bytes
Line 
1#ifndef _SIGNAL_H_
2#define _SIGNAL_H_
3
4#include "_ansi.h"
5#include <sys/cdefs.h>
6#include <sys/signal.h>
7
8_BEGIN_STD_C
9
10typedef int     sig_atomic_t;           /* Atomic entity type (ANSI) */
11#if __BSD_VISIBLE
12typedef _sig_func_ptr sig_t;            /* BSD naming */
13#endif
14#if __GNU_VISIBLE
15typedef _sig_func_ptr sighandler_t;     /* glibc naming */
16#endif
17
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 */
21
22struct _reent;
23
24_sig_func_ptr _signal_r (struct _reent *, int, _sig_func_ptr);
25int     _raise_r (struct _reent *, int);
26
27#ifndef _REENT_ONLY
28_sig_func_ptr signal (int, _sig_func_ptr);
29int     raise (int);
30void    psignal (int, const char *);
31#endif
32
33_END_STD_C
34
35#endif /* _SIGNAL_H_ */
Note: See TracBrowser for help on using the repository browser.