summaryrefslogtreecommitdiff
path: root/LibC/signal_numbers.h
blob: a26beeaa15cf26382bebe0236eccfb7ccf892bd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#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
};