OrionLibC
Barry Importing existing Orion LibC 03048a9 (2 years, 2 months ago)diff --git a/include/signal.h b/include/signal.h new file mode 100644 index 0000000..3999125 --- /dev/null +++ b/include/signal.h @@ -0,0 +1,39 @@ +#ifndef _SIGNAL_H +#define _SIGNAL_H + +#include <sys/types.h> + +typedef unsigned long int __sigset_t; +#ifndef sigset_t +typedef __sigset_t sigset_t; +#endif +#ifndef sig_atomic_t +typedef int sig_atomic_t; +#endif + +#ifdef __cplusplus +extern "C" { +#endif + +enum Signals { + SIGHUP = 1, + SIGINT, + SIGQUIT, + SIGILL, + SIGABRT, + SIGFPE, + SIGKILL, + SIGSEGV, + SIGPIPE, + +}; + +void (*signal(int sig, void (*func)(int)))(int); +int tgkill(pid_t tgid, pid_t tid, int sig); +int kill(pid_t pid, int sig); + +#ifdef __cplusplus +} +#endif + +#endif