Subversion Repositories Kolibri OS

Rev

Rev 4874 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
4349 Serge 1
#ifndef _SIGNAL_H_
2
#define _SIGNAL_H_
3
 
4
#include "_ansi.h"
6536 serge 5
#include 
4349 Serge 6
#include 
7
 
8
_BEGIN_STD_C
9
 
10
typedef int	sig_atomic_t;		/* Atomic entity type (ANSI) */
6536 serge 11
#if __BSD_VISIBLE
4349 Serge 12
typedef _sig_func_ptr sig_t;		/* BSD naming */
6536 serge 13
#endif
14
#if __GNU_VISIBLE
4349 Serge 15
typedef _sig_func_ptr sighandler_t;	/* glibc naming */
6536 serge 16
#endif
4349 Serge 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
 
22
struct _reent;
23
 
24
_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr));
25
int	_EXFUN(_raise_r, (struct _reent *, int));
26
 
27
#ifndef _REENT_ONLY
28
_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr));
29
int	_EXFUN(raise, (int));
30
void	_EXFUN(psignal, (int, const char *));
31
#endif
32
 
33
_END_STD_C
34
 
35
#endif /* _SIGNAL_H_ */