2022-10-15 13:13:38 +00:00
|
|
|
#ifndef _SIGNAL_H
|
|
|
|
#define _SIGNAL_H
|
|
|
|
|
2022-10-21 16:31:19 +00:00
|
|
|
typedef int sig_atomic_t; // On the x86, writes to aligned 32-bit and 64-bit integers are always atomic. (Or that's what
|
|
|
|
// I understood)
|
|
|
|
|
|
|
|
#define SIGINT 1 // Not implemented.
|
2022-10-15 13:13:38 +00:00
|
|
|
|
2022-11-09 10:37:08 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
|
|
|
|
void (*signal(int sig, void (*func)(int)))(int); // Not implemented.
|
|
|
|
int raise(int sig); // Not implemented.
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2022-10-15 13:13:38 +00:00
|
|
|
#endif
|