ciabatta/inc/signal.h

21 lines
480 B
C

#include "_platform.h"
typedef int sig_atomic_t;
// TODO: implement this
#define SIG_DFL (-1)
#define SIG_ERR (-1)
#define SIG_IGN (-1)
// not sure why but windows picked these, we can change it later
#define SIGINT 2
#define SIGILL 4
#define SIGFPE 8
#define SIGSEGV 11
#define SIGTERM 15
#define SIGBREAK 21
#define SIGABRT 22
void (*signal(int sig, void (*func)(int)))(int);
int raise(int sig);