Added labels. Provide actual implementation.

2000-02-13  Martin Baulig  <martin@home-of-linux.org>

	* lib/sysdeps-init-linux.c (glibtop_sys_siglist): Added labels.
	* lib/sysdeps-init-freebsd.c (glibtop_sys_siglist): Provide
	actual implementation.
This commit is contained in:
Martin Baulig
2000-02-13 15:21:41 +00:00
committed by Martin Baulig
parent b124998639
commit a73800ae2d
3 changed files with 69 additions and 31 deletions

View File

@@ -1,3 +1,9 @@
2000-02-13 Martin Baulig <martin@home-of-linux.org>
* lib/sysdeps-init-linux.c (glibtop_sys_siglist): Added labels.
* lib/sysdeps-init-freebsd.c (glibtop_sys_siglist): Provide
actual implementation.
2000-02-06 Martin Baulig <martin@home-of-linux.org>
* lib/sysdeps-init-*.c (glibtop_sys_siglist): Moved here from

View File

@@ -30,7 +30,39 @@
#include <glibtop/signal.h>
const glibtop_signame glibtop_sys_siglist [] =
{ { 0, NULL, NULL } };
{ { 1, "SIGHUP", N_("Hangup (POSIX)") },
{ 2, "SIGINT", N_("Interrupt (ANSI)") },
{ 3, "SIGQUIT", N_("Quit (POSIX)") },
{ 4, "SIGILL", N_("Illegal instruction (ANSI)") },
{ 5, "SIGTRAP", N_("Trace trap (POSIX)") },
{ 6, "SIGABRT", N_("Abort (ANSI)") },
{ 7, "SIGEMT", N_("EMT instruction") },
{ 8, "SIGFPE", N_("Floating-point exception (ANSI)") },
{ 9, "SIGKILL", N_("Kill, unblockable (POSIX)") },
{ 10, "SIGBUS", N_("BUS error (4.2 BSD)") },
{ 11, "SIGSEGV", N_("Segmentation violation (ANSI)") },
{ 12, "SIGSYS", N_("Bad argument to system call") },
{ 13, "SIGPIPE", N_("Broken pipe (POSIX)") },
{ 14, "SIGALRM", N_("Alarm clock (POSIX)") },
{ 15, "SIGTERM", N_("Termination (ANSI)") },
{ 16, "SIGURG", N_("Urgent condition on socket (4.2 BSD)") },
{ 17, "SIGSTOP", N_("Stop, unblockable (POSIX)") },
{ 18, "SIGTSTP", N_("Keyboard stop (POSIX)") },
{ 19, "SIGCONT", N_("Continue (POSIX)") },
{ 20, "SIGCHLD", N_("Child status has changed (POSIX)") },
{ 21, "SIGTTIN", N_("Background read from tty (POSIX)") },
{ 22, "SIGTTOU", N_("Background write to tty (POSIX)") },
{ 23, "SIGIO", N_("I/O now possible (4.2 BSD)") },
{ 24, "SIGXCPU", N_("CPU limit exceeded (4.2 BSD)") },
{ 25, "SIGXFSZ", N_("File size limit exceeded (4.2 BSD)") },
{ 26, "SIGVTALRM", N_("Virtual alarm clock (4.2 BSD)") },
{ 27, "SIGPROF", N_("Profiling alarm clock (4.2 BSD)") },
{ 28, "SIGWINCH", N_("Window size change (4.3 BSD, Sun)") },
{ 29, "SIGINFO", N_("Information request") },
{ 30, "SIGUSR1", N_("User-defined signal 1 (POSIX)") },
{ 31, "SIGUSR2", N_("User-defined signal 2 (POSIX)") },
{ 0, NULL, NULL },
};
void
_glibtop_open_sysdeps (glibtop *server, const char *program_name,

View File

@@ -30,36 +30,36 @@
#include <glibtop/signal.h>
const glibtop_signame glibtop_sys_siglist [] =
{ { 1, "SIGHUP", NULL }, /* Hangup (POSIX). */
{ 2, "SIGINT", NULL }, /* Interrupt (ANSI). */
{ 3, "SIGQUIT", NULL }, /* Quit (POSIX). */
{ 4, "SIGILL", NULL }, /* Illegal instruction (ANSI). */
{ 5, "SIGTRAP", NULL }, /* Trace trap (POSIX). */
{ 6, "SIGABRT", NULL }, /* Abort (ANSI). */
{ 7, "SIGBUS", NULL }, /* BUS error (4.2 BSD). */
{ 8, "SIGFPE", NULL }, /* Floating-point exception (ANSI). */
{ 9, "SIGKILL", NULL }, /* Kill, unblockable (POSIX). */
{ 10, "SIGUSR1", NULL }, /* User-defined signal 1 (POSIX). */
{ 11, "SIGSEGV", NULL }, /* Segmentation violation (ANSI). */
{ 12, "SIGUSR2", NULL }, /* User-defined signal 2 (POSIX). */
{ 13, "SIGPIPE", NULL }, /* Broken pipe (POSIX). */
{ 14, "SIGALRM", NULL }, /* Alarm clock (POSIX). */
{ 15, "SIGTERM", NULL }, /* Termination (ANSI). */
{ 16, "SIGSTKFLT", NULL }, /* ??? */
{ 17, "SIGCHLD", NULL }, /* Child status has changed (POSIX). */
{ 18, "SIGCONT", NULL }, /* Continue (POSIX). */
{ 19, "SIGSTOP", NULL }, /* Stop, unblockable (POSIX). */
{ 20, "SIGTSTP", NULL }, /* Keyboard stop (POSIX). */
{ 21, "SIGTTIN", NULL }, /* Background read from tty (POSIX). */
{ 22, "SIGTTOU", NULL }, /* Background write to tty (POSIX). */
{ 23, "SIGURG", NULL }, /* Urgent condition on socket (4.2 BSD). */
{ 24, "SIGXCPU", NULL }, /* CPU limit exceeded (4.2 BSD). */
{ 25, "SIGXFSZ", NULL }, /* File size limit exceeded (4.2 BSD). */
{ 26, "SIGVTALRM", NULL }, /* Virtual alarm clock (4.2 BSD). */
{ 27, "SIGPROF", NULL }, /* Profiling alarm clock (4.2 BSD). */
{ 28, "SIGWINCH", NULL }, /* Window size change (4.3 BSD, Sun). */
{ 29, "SIGIO", NULL }, /* I/O now possible (4.2 BSD). */
{ 30, "SIGPWR", NULL }, /* Power failure restart (System V). */
{ { 1, "SIGHUP", N_("Hangup (POSIX)") },
{ 2, "SIGINT", N_("Interrupt (ANSI)") },
{ 3, "SIGQUIT", N_("Quit (POSIX)") },
{ 4, "SIGILL", N_("Illegal instruction (ANSI)") },
{ 5, "SIGTRAP", N_("Trace trap (POSIX)") },
{ 6, "SIGABRT", N_("Abort (ANSI)") },
{ 7, "SIGBUS", N_("BUS error (4.2 BSD)") },
{ 8, "SIGFPE", N_("Floating-point exception (ANSI)") },
{ 9, "SIGKILL", N_("Kill, unblockable (POSIX)") },
{ 10, "SIGUSR1", N_("User-defined signal 1 (POSIX)") },
{ 11, "SIGSEGV", N_("Segmentation violation (ANSI)") },
{ 12, "SIGUSR2", N_("User-defined signal 2 (POSIX)") },
{ 13, "SIGPIPE", N_("Broken pipe (POSIX)") },
{ 14, "SIGALRM", N_("Alarm clock (POSIX)") },
{ 15, "SIGTERM", N_("Termination (ANSI)") },
{ 16, "SIGSTKFLT", NULL },
{ 17, "SIGCHLD", N_("Child status has changed (POSIX)") },
{ 18, "SIGCONT", N_("Continue (POSIX)") },
{ 19, "SIGSTOP", N_("Stop, unblockable (POSIX)") },
{ 20, "SIGTSTP", N_("Keyboard stop (POSIX)") },
{ 21, "SIGTTIN", N_("Background read from tty (POSIX)") },
{ 22, "SIGTTOU", N_("Background write to tty (POSIX)") },
{ 23, "SIGURG", N_("Urgent condition on socket (4.2 BSD)") },
{ 24, "SIGXCPU", N_("CPU limit exceeded (4.2 BSD)") },
{ 25, "SIGXFSZ", N_("File size limit exceeded (4.2 BSD)") },
{ 26, "SIGVTALRM", N_("Virtual alarm clock (4.2 BSD)") },
{ 27, "SIGPROF", N_("Profiling alarm clock (4.2 BSD)") },
{ 28, "SIGWINCH", N_("Window size change (4.3 BSD, Sun)") },
{ 29, "SIGIO", N_("I/O now possible (4.2 BSD)") },
{ 30, "SIGPWR", N_("Power failure restart (System V)") },
{ 31, "SIGUNUSED", NULL },
{ 0, NULL, NULL },
};