1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 01:37:36 +00:00

Compat work towards porting vim.

This commit is contained in:
Andreas Kling 2019-02-26 15:57:59 +01:00
parent 2e5b9d318f
commit a356746d04
17 changed files with 200 additions and 77 deletions

View file

@ -1,44 +1,35 @@
#pragma once
#define __ENUMERATE_ALL_SIGNALS \
__SIGNAL(SIGINVAL, "Invalid signal number") \
__SIGNAL(SIGHUP, "Hangup") \
__SIGNAL(SIGINT, "Interrupt") \
__SIGNAL(SIGQUIT, "Quit") \
__SIGNAL(SIGILL, "Illegal instruction") \
__SIGNAL(SIGTRAP, "Trap") \
__SIGNAL(SIGABRT, "Aborted") \
__SIGNAL(SIGBUS, "Bus error") \
__SIGNAL(SIGFPE, "FP exception") \
__SIGNAL(SIGKILL, "Killed") \
__SIGNAL(SIGUSR1, "User signal 1") \
__SIGNAL(SIGSEGV, "Segmentation violation") \
__SIGNAL(SIGUSR2, "User signal 2") \
__SIGNAL(SIGPIPE, "Broken pipe") \
__SIGNAL(SIGALRM, "Alarm clock") \
__SIGNAL(SIGTERM, "Terminated") \
__SIGNAL(SIGSTKFLT, "Stack fault") \
__SIGNAL(SIGCHLD, "Child exited") \
__SIGNAL(SIGCONT, "Continued") \
__SIGNAL(SIGSTOP, "Stopped (signal)") \
__SIGNAL(SIGTSTP, "Stopped") \
__SIGNAL(SIGTTIN, "Stopped (tty input)") \
__SIGNAL(SIGTTOU, "Stopped (tty output)") \
__SIGNAL(SIGURG, "Urgent I/O condition)") \
__SIGNAL(SIGXCPU, "CPU limit exceeded") \
__SIGNAL(SIGXFSZ, "File size limit exceeded") \
__SIGNAL(SIGVTALRM, "Virtual timer expired") \
__SIGNAL(SIGPROF, "Profiling timer expired") \
__SIGNAL(SIGWINCH, "Window changed") \
__SIGNAL(SIGIO, "I/O possible") \
__SIGNAL(SIGPWR, "Power failure") \
__SIGNAL(SIGSYS, "Bad system call") \
enum __signal_numbers {
#undef __SIGNAL
#define __SIGNAL(a, b) a,
__ENUMERATE_ALL_SIGNALS
#undef __SIGNAL
__signal_count
};
#define SIGINVAL 0
#define SIGHUP 1
#define SIGINT 2
#define SIGQUIT 3
#define SIGILL 4
#define SIGTRAP 5
#define SIGABRT 6
#define SIGBUS 7
#define SIGFPE 8
#define SIGKILL 9
#define SIGUSR1 10
#define SIGSEGV 11
#define SIGUSR2 12
#define SIGPIPE 13
#define SIGALRM 14
#define SIGTERM 15
#define SIGSTKFLT 16
#define SIGCHLD 17
#define SIGCONT 18
#define SIGSTOP 19
#define SIGTSTP 20
#define SIGTTIN 21
#define SIGTTOU 22
#define SIGURG 23
#define SIGXCPU 24
#define SIGXFSZ 25
#define SIGVTALRM 26
#define SIGPROF 27
#define SIGWINCH 28
#define SIGIO 29
#define SIGPWR 30
#define SIGSYS 31
#define NSIG 32