25 lines
373 B
C
25 lines
373 B
C
#ifndef _YGGDRASIL_SIGNAL_H
|
|
#define _YGGDRASIL_SIGNAL_H 1
|
|
|
|
#include <stdatomic.h>
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef _Atomic int sig_atomic_t;
|
|
|
|
#define SIG_IGN __sig_ignore
|
|
// TODO
|
|
#define SIG_ERR ((sig_handler_t) 1)
|
|
// TODO
|
|
#define SIG_HOLD __sig_terminate
|
|
|
|
#define SIG_DFL ((sig_handler_t) 0)
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|