diff options
author | yenatch <yenatch@gmail.com> | 2017-12-30 22:37:40 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-30 22:37:40 -0500 |
commit | 2fb0c12507e846a918c1dfc1b781303fb4e16298 (patch) | |
tree | 86b1ec0776ba18e9393ea89873e94a884465cd71 /tools/agbcc/include/signal.h | |
parent | d45170e3f196bf61bb6ea7f039560e120de5780b (diff) | |
parent | 5342ce36230fb7e9c4127eb5cadd5f21ee565a84 (diff) |
Merge pull request #2 from ProjectRevoTPP/master
libc binaries and headers
Diffstat (limited to 'tools/agbcc/include/signal.h')
-rw-r--r-- | tools/agbcc/include/signal.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tools/agbcc/include/signal.h b/tools/agbcc/include/signal.h new file mode 100644 index 0000000..8274369 --- /dev/null +++ b/tools/agbcc/include/signal.h @@ -0,0 +1,31 @@ +#ifndef _SIGNAL_H_ +#ifdef __cplusplus +extern "C" { +#endif +#define _SIGNAL_H_ + +#include "_ansi.h" +#include <sys/signal.h> + +typedef int sig_atomic_t; /* Atomic entity type (ANSI) */ + +#define SIG_DFL ((void (*)(int))0) /* Default action */ +#define SIG_IGN ((void (*)(int))1) /* Ignore action */ +#define SIG_ERR ((void (*)(int))-1) /* Error return */ + +typedef void (*_sig_func_ptr) (int); + +struct _reent; + +_sig_func_ptr _EXFUN(_signal_r, (struct _reent *, int, _sig_func_ptr)); +int _EXFUN(_raise_r, (struct _reent *, int)); + +#ifndef _REENT_ONLY +_sig_func_ptr _EXFUN(signal, (int, _sig_func_ptr)); +int _EXFUN(raise, (int)); +#endif + +#ifdef __cplusplus +} +#endif +#endif /* _SIGNAL_H_ */ |