MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #ifndef LPC_SIGNALS_H_ |
| 2 | #define LPC_SIGNALS_H_ 1 |
| 3 | |
| 4 | // Our defines for some POSIX signals the driver defers to the mudlib. |
| 5 | // This abstraction is intentional. |
| 6 | #define LPC_SIGHUP 1 |
| 7 | #define LPC_SIGINT 2 |
| 8 | #define LPC_SIGTERM 15 |
| 9 | #define LPC_SIGUSR1 16 |
| 10 | #define LPC_SIGUSR2 17 |
| 11 | |
| 12 | // __STD__ is defined during the driver compilation (the driver includes this |
| 13 | // file as well) but not in LPC programs. In LPC we may safely define the |
| 14 | // signals name without the LPC_ prefix. |
| 15 | #if !defined(__STDC__) |
| 16 | #define SIGHUP LPC_SIGHUP |
| 17 | #define SIGINT LPC_SIGINT |
| 18 | #define SIGTERM LPC_SIGTERM |
| 19 | #define SIGUSR1 LPC_SIGUSR1 |
| 20 | #define SIGUSR2 LPC_SIGUSR2 |
| 21 | #endif // __STD__ |
| 22 | |
| 23 | #endif /* LPC_SIGNALS_H_ */ |