2 * A List of Signal Names
4 * (c) 2012 Martin Mares <mj@ucw.cz>
7 #ifndef _UCW_SIGNAMES_H
8 #define _UCW_SIGNAMES_H
11 * POSIX lacks facilities for conversion between signal names
12 * and signal numbers. They are available in LibUCW, but please
13 * be aware that some signals might be missing on your system.
14 * If they do, please notify LibUCW maintainers.
18 * Converts signal name to the corresponding number.
19 * Returns -1 if not found.
21 int sig_name_to_number(const char *name);
24 * Converts signal number to the corresponding name.
25 * If more names are known for the given signal, one of them
26 * is considered canonical and preferred.
27 * Returns NULL if not found.
29 const char *sig_number_to_name(int number);