From 885f5974cdf65b59415837ae97f5a14ef1350670 Mon Sep 17 00:00:00 2001 From: Kacper Date: Tue, 9 Dec 2025 19:20:15 +0100 Subject: feat: add gzip and new headers --- lib/libc/signal/siglist.c | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/libc/signal/siglist.c (limited to 'lib/libc/signal/siglist.c') diff --git a/lib/libc/signal/siglist.c b/lib/libc/signal/siglist.c new file mode 100644 index 00000000..ba9ec746 --- /dev/null +++ b/lib/libc/signal/siglist.c @@ -0,0 +1,47 @@ +#include +#include + +const char *const sys_siglist[64] = { + [SIGABRT] = "Aborted", + [SIGALRM] = "Alarm clock", + [SIGBUS] = "Bus error", + [SIGCHLD] = "Child exited", +#if defined(SIGCLD) && (SIGCHLD != SIGCLD) + [SIGCLD] = "Child exited", +#endif + [SIGHUP] = "Hangup", + [SIGILL] = "Illegal instruction", + [SIGINT] = "Interrupt", + [SIGIO] = "I/O possible", +#if defined(SIGIOT) && (SIGIOT != SIGABRT) + [SIGIOT] = "I/O trap", +#endif + [SIGKILL] = "Killed", +#if defined(SIGLOST) && (SIGLOST != SIGIO) && (SIGLOST != SIGPWR) + [SIGLOST] = "Lock lost", +#endif + [SIGPIPE] = "Broken pipe", +#if defined(SIGPOLL) && (SIGPOLL != SIGIO) + [SIGPOLL] = "Pollable event", +#endif + [SIGPROF] = "Profiling timer expired", + [SIGPWR] = "Power failure", + [SIGQUIT] = "Quit", + [SIGSEGV] = "Segment violation", + [SIGSTKFLT] = "Stack fault", + [SIGSTOP] = "Stopped (signal)", + [SIGSYS] = "Bad system call", + [SIGTERM] = "Terminated", + [SIGTSTP] = "Stopped", + [SIGTTIN] = "Stopped (tty input)", + [SIGTTOU] = "Stopped (tty output)", + [SIGURG] = "Urgent I/O condition", + [SIGUSR1] = "User signal 1", + [SIGUSR2] = "User signal 2", + [SIGVTALRM] = "Virtual timer expired", + [SIGWINCH] = "Window size changed", + [SIGXCPU] = "CPU time limit exceeded", + [SIGXFSZ] = "File size limit exceeded", + [SIGTRAP] = "Trace/breakpoint trap", + [SIGCONT] = "Continue", +}; -- cgit v1.2.3