ciabatta/inc/signal.h

22 lines
463 B
C
Raw Normal View History

#pragma once
2022-06-02 06:28:17 +00:00
typedef int sig_atomic_t;
// TODO: implement this
2022-06-06 01:30:01 +00:00
#define SIG_DFL 0
#define SIG_ERR 1
#define SIG_IGN 2
2022-06-02 06:28:17 +00:00
// 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);