* siglist.c: Updated.
This commit is contained in:
Benoît Dejean
2005-03-25 12:52:12 +00:00
parent a97ee0a513
commit ca4dc56342
2 changed files with 51 additions and 33 deletions

View File

@@ -1,3 +1,7 @@
2005-03-25 Benoît Dejean <TazForEver@dlfp.org>
* siglist.c: Updated.
2005-02-15 Benoît Dejean <TazForEver@dlfp.org> 2005-02-15 Benoît Dejean <TazForEver@dlfp.org>
* fsusage.c: Fixed G_GNUC attribute usage. * fsusage.c: Fixed G_GNUC attribute usage.

View File

@@ -21,40 +21,54 @@
Boston, MA 02111-1307, USA. Boston, MA 02111-1307, USA.
*/ */
#include <glibtop.h>
#include <glibtop/signal.h> #include <glibtop/signal.h>
#include <signal.h>
#if 0 /* comment */
perl -nle 'print "{$1,\t\"$1\",\t\"$2\"}," if m|^#define\s*(SIG[A-Z0-9]+).*?/\*\s*(.*?)\s*\*/|'
< /usr/include/bits/signum.h
#endif
const glibtop_signame glibtop_sys_siglist [] = const glibtop_signame glibtop_sys_siglist [] =
{ { 1, "SIGHUP", NULL }, /* Hangup (POSIX). */ {
{ 2, "SIGINT", NULL }, /* Interrupt (ANSI). */ {SIGHUP, "SIGHUP", "Hangup (POSIX)."},
{ 3, "SIGQUIT", NULL }, /* Quit (POSIX). */ {SIGINT, "SIGINT", "Interrupt (ANSI)."},
{ 4, "SIGILL", NULL }, /* Illegal instruction (ANSI). */ {SIGQUIT, "SIGQUIT", "Quit (POSIX)."},
{ 5, "SIGTRAP", NULL }, /* Trace trap (POSIX). */ {SIGILL, "SIGILL", "Illegal instruction (ANSI)."},
{ 6, "SIGABRT", NULL }, /* Abort (ANSI). */ {SIGTRAP, "SIGTRAP", "Trace trap (POSIX)."},
{ 7, "SIGBUS", NULL }, /* BUS error (4.2 BSD). */ {SIGABRT, "SIGABRT", "Abort (ANSI)."},
{ 8, "SIGFPE", NULL }, /* Floating-point exception (ANSI). */ {SIGIOT, "SIGIOT", "IOT trap (4.2 BSD)."},
{ 9, "SIGKILL", NULL }, /* Kill, unblockable (POSIX). */ {SIGBUS, "SIGBUS", "BUS error (4.2 BSD)."},
{ 10, "SIGUSR1", NULL }, /* User-defined signal 1 (POSIX). */ {SIGFPE, "SIGFPE", "Floating-point exception (ANSI)."},
{ 11, "SIGSEGV", NULL }, /* Segmentation violation (ANSI). */ {SIGKILL, "SIGKILL", "Kill, unblockable (POSIX)."},
{ 12, "SIGUSR2", NULL }, /* User-defined signal 2 (POSIX). */ {SIGUSR1, "SIGUSR1", "User-defined signal 1 (POSIX)."},
{ 13, "SIGPIPE", NULL }, /* Broken pipe (POSIX). */ {SIGSEGV, "SIGSEGV", "Segmentation violation (ANSI)."},
{ 14, "SIGALRM", NULL }, /* Alarm clock (POSIX). */ {SIGUSR2, "SIGUSR2", "User-defined signal 2 (POSIX)."},
{ 15, "SIGTERM", NULL }, /* Termination (ANSI). */ {SIGPIPE, "SIGPIPE", "Broken pipe (POSIX)."},
{ 16, "SIGSTKFLT", NULL }, /* ??? */ {SIGALRM, "SIGALRM", "Alarm clock (POSIX)."},
{ 17, "SIGCHLD", NULL }, /* Child status has changed (POSIX). */ {SIGTERM, "SIGTERM", "Termination (ANSI)."},
{ 18, "SIGCONT", NULL }, /* Continue (POSIX). */ {SIGSTKFLT, "SIGSTKFLT", "Stack fault."},
{ 19, "SIGSTOP", NULL }, /* Stop, unblockable (POSIX). */ {SIGCLD, "SIGCLD", "Same as SIGCHLD (System V)."},
{ 20, "SIGTSTP", NULL }, /* Keyboard stop (POSIX). */ {SIGCHLD, "SIGCHLD", "Child status has changed (POSIX)."},
{ 21, "SIGTTIN", NULL }, /* Background read from tty (POSIX). */ {SIGCONT, "SIGCONT", "Continue (POSIX)."},
{ 22, "SIGTTOU", NULL }, /* Background write to tty (POSIX). */ {SIGSTOP, "SIGSTOP", "Stop, unblockable (POSIX)."},
{ 23, "SIGURG", NULL }, /* Urgent condition on socket (4.2 BSD). */ {SIGTSTP, "SIGTSTP", "Keyboard stop (POSIX)."},
{ 24, "SIGXCPU", NULL }, /* CPU limit exceeded (4.2 BSD). */ {SIGTTIN, "SIGTTIN", "Background read from tty (POSIX)."},
{ 25, "SIGXFSZ", NULL }, /* File size limit exceeded (4.2 BSD). */ {SIGTTOU, "SIGTTOU", "Background write to tty (POSIX)."},
{ 26, "SIGVTALRM", NULL }, /* Virtual alarm clock (4.2 BSD). */ {SIGURG, "SIGURG", "Urgent condition on socket (4.2 BSD)."},
{ 27, "SIGPROF", NULL }, /* Profiling alarm clock (4.2 BSD). */ {SIGXCPU, "SIGXCPU", "CPU limit exceeded (4.2 BSD)."},
{ 28, "SIGWINCH", NULL }, /* Window size change (4.3 BSD, Sun). */ {SIGXFSZ, "SIGXFSZ", "File size limit exceeded (4.2 BSD)."},
{ 29, "SIGIO", NULL }, /* I/O now possible (4.2 BSD). */ {SIGVTALRM, "SIGVTALRM", "Virtual alarm clock (4.2 BSD)."},
{ 30, "SIGPWR", NULL }, /* Power failure restart (System V). */ {SIGPROF, "SIGPROF", "Profiling alarm clock (4.2 BSD)."},
{ 31, "SIGUNUSED", NULL }, {SIGWINCH, "SIGWINCH", "Window size change (4.3 BSD, Sun)."},
{ 0, NULL, NULL }, {SIGPOLL, "SIGPOLL", "Pollable event occurred (System V)."},
{SIGIO, "SIGIO", "I/O now possible (4.2 BSD)."},
{SIGPWR, "SIGPWR", "Power failure restart (System V)."},
{SIGSYS, "SIGSYS", "Bad system call."},
{SIGUNUSED, "SIGUNUSED", ""},
{0, NULL, NULL}
}; };