aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-06-07 22:52:38 -0700
committerRob Landley <rob@landley.net>2019-06-10 15:08:08 -0500
commit1e229a235d9e011c4f64169e51be7ac4fa78bbde (patch)
treee68712c60331b51dfeff685916bc4c00ff3c7d6b /lib/lib.h
parente2551dbf740941572607f6eb50cab2cc23e59548 (diff)
downloadtoybox-1e229a235d9e011c4f64169e51be7ac4fa78bbde.tar.gz
Improve signal name<->number conversions.
Include all the signals, not just the POSIX ones. In particular, improve support for real-time signals. My attempt to switch AOSP builds over to toybox timeout got reverted when I broke the ART build bots which use SIGRTMIN+2. Also fix `kill -l 3` to show "QUIT" and `kill -l QUIT` to show "3". Also make the `kill -l` output include numbers and names, and format it to look better on a 80x24 tty, because it's always August 1978 somewhere.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 080c533f..7f79bdb8 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -229,6 +229,7 @@ char *chomp(char *s);
int unescape(char c);
char *strend(char *str, char *suffix);
int strstart(char **a, char *b);
+int strcasestart(char **a, char *b);
off_t fdlength(int fd);
void loopfiles_rw(char **argv, int flags, int permissions,
void (*function)(int fd, char *name));
@@ -388,6 +389,7 @@ void generic_signal(int signal);
void exit_signal(int signal);
void sigatexit(void *handler);
int sig_to_num(char *pidstr);
+void list_signals();
char *num_to_sig(int sig);
mode_t string_to_mode(char *mode_str, mode_t base);