1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#pragma once #include <errno.h> // only for ENOSYS #define SIGHUP 0 #define SIGINT 0 #define SIGWINCH 0 #define SIGQUIT 0 #define SIG_IGN 0 #define SIG_ERR 0 typedef int sig_atomic_t; static inline int signal(int sig, void (*func)(int)) { (void)sig; (void)func; errno = ENOSYS; return SIG_ERR; }