diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2005-05-25 22:28:42 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2005-05-25 22:28:42 +0000 |
commit | 872a4180e47276a91c65577e69fbd834eeabb8c6 (patch) | |
tree | 8caa0792ed578848edb49e03953d16b635b8969a /sysdeps | |
parent | e8351bae059a29836d87546c9547ad82df156fcd (diff) | |
download | libgtop-872a4180e47276a91c65577e69fbd834eeabb8c6.tar.gz |
Fixed compilation on mips. Closes #304570.
* siglist.c: Fixed compilation on mips. Closes #304570.
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux/ChangeLog | 4 | ||||
-rw-r--r-- | sysdeps/linux/siglist.c | 70 |
2 files changed, 74 insertions, 0 deletions
diff --git a/sysdeps/linux/ChangeLog b/sysdeps/linux/ChangeLog index 92f9eadf..e155087d 100644 --- a/sysdeps/linux/ChangeLog +++ b/sysdeps/linux/ChangeLog @@ -1,3 +1,7 @@ +2005-05-26 Benoît Dejean <TazForEver@dlfp.org> + + * siglist.c: Fixed compilation on mips. Closes #304570. + 2005-04-01 Benoît Dejean <TazForEver@dlfp.org> * glibtop_private.h: Fixed gcc-4.0 warnings. diff --git a/sysdeps/linux/siglist.c b/sysdeps/linux/siglist.c index c6a09403..9bf7973b 100644 --- a/sysdeps/linux/siglist.c +++ b/sysdeps/linux/siglist.c @@ -35,40 +35,110 @@ perl -nle 'print "{$1,\t\"$1\",\t\"$2\"}," if m|^#define\s*(SIG[A-Z0-9]+).*?/\*\ const glibtop_signame glibtop_sys_siglist [] = { +#ifdef SIGHUP {SIGHUP, "SIGHUP", "Hangup (POSIX)."}, +#endif +#ifdef SIGINT {SIGINT, "SIGINT", "Interrupt (ANSI)."}, +#endif +#ifdef SIGQUIT {SIGQUIT, "SIGQUIT", "Quit (POSIX)."}, +#endif +#ifdef SIGILL {SIGILL, "SIGILL", "Illegal instruction (ANSI)."}, +#endif +#ifdef SIGTRAP {SIGTRAP, "SIGTRAP", "Trace trap (POSIX)."}, +#endif +#ifdef SIGABRT {SIGABRT, "SIGABRT", "Abort (ANSI)."}, +#endif +#ifdef SIGIOT {SIGIOT, "SIGIOT", "IOT trap (4.2 BSD)."}, +#endif +#ifdef SIGBUS {SIGBUS, "SIGBUS", "BUS error (4.2 BSD)."}, +#endif +#ifdef SIGFPE {SIGFPE, "SIGFPE", "Floating-point exception (ANSI)."}, +#endif +#ifdef SIGKILL {SIGKILL, "SIGKILL", "Kill, unblockable (POSIX)."}, +#endif +#ifdef SIGUSR1 {SIGUSR1, "SIGUSR1", "User-defined signal 1 (POSIX)."}, +#endif +#ifdef SIGSEGV {SIGSEGV, "SIGSEGV", "Segmentation violation (ANSI)."}, +#endif +#ifdef SIGUSR2 {SIGUSR2, "SIGUSR2", "User-defined signal 2 (POSIX)."}, +#endif +#ifdef SIGPIPE {SIGPIPE, "SIGPIPE", "Broken pipe (POSIX)."}, +#endif +#ifdef SIGALRM {SIGALRM, "SIGALRM", "Alarm clock (POSIX)."}, +#endif +#ifdef SIGTERM {SIGTERM, "SIGTERM", "Termination (ANSI)."}, +#endif +#ifdef SIGSTKFLT {SIGSTKFLT, "SIGSTKFLT", "Stack fault."}, +#endif +#ifdef SIGCLD {SIGCLD, "SIGCLD", "Same as SIGCHLD (System V)."}, +#endif +#ifdef SIGCHLD {SIGCHLD, "SIGCHLD", "Child status has changed (POSIX)."}, +#endif +#ifdef SIGCONT {SIGCONT, "SIGCONT", "Continue (POSIX)."}, +#endif +#ifdef SIGSTOP {SIGSTOP, "SIGSTOP", "Stop, unblockable (POSIX)."}, +#endif +#ifdef SIGTSTP {SIGTSTP, "SIGTSTP", "Keyboard stop (POSIX)."}, +#endif +#ifdef SIGTTIN {SIGTTIN, "SIGTTIN", "Background read from tty (POSIX)."}, +#endif +#ifdef SIGTTOU {SIGTTOU, "SIGTTOU", "Background write to tty (POSIX)."}, +#endif +#ifdef SIGURG {SIGURG, "SIGURG", "Urgent condition on socket (4.2 BSD)."}, +#endif +#ifdef SIGXCPU {SIGXCPU, "SIGXCPU", "CPU limit exceeded (4.2 BSD)."}, +#endif +#ifdef SIGXFSZ {SIGXFSZ, "SIGXFSZ", "File size limit exceeded (4.2 BSD)."}, +#endif +#ifdef SIGVTALRM {SIGVTALRM, "SIGVTALRM", "Virtual alarm clock (4.2 BSD)."}, +#endif +#ifdef SIGPROF {SIGPROF, "SIGPROF", "Profiling alarm clock (4.2 BSD)."}, +#endif +#ifdef SIGWINCH {SIGWINCH, "SIGWINCH", "Window size change (4.3 BSD, Sun)."}, +#endif +#ifdef SIGPOLL {SIGPOLL, "SIGPOLL", "Pollable event occurred (System V)."}, +#endif +#ifdef SIGIO {SIGIO, "SIGIO", "I/O now possible (4.2 BSD)."}, +#endif +#ifdef SIGPWR {SIGPWR, "SIGPWR", "Power failure restart (System V)."}, +#endif +#ifdef SIGSYS {SIGSYS, "SIGSYS", "Bad system call."}, +#endif +#ifdef SIGUNUSED {SIGUNUSED, "SIGUNUSED", ""}, +#endif {0, NULL, NULL} }; |