From 0f3babc8e97a372a868fd367fee6b98e9566d353 Mon Sep 17 00:00:00 2001 From: Martin Baulig Date: Sun, 6 Feb 2000 18:20:20 +0000 Subject: [PATCH] Moved here from the sysdeps directories. 2000-02-06 Martin Baulig * lib/sysdeps-init-*.c (glibtop_sys_siglist): Moved here from the sysdeps directories. * sysdeps/*/siglist.c: Removed. --- ChangeLog | 7 ++++ lib/sysdeps-init-freebsd.c | 5 +++ lib/sysdeps-init-kernel.c | 37 +++++++++++++++++ lib/sysdeps-init-linux.c | 37 +++++++++++++++++ lib/sysdeps-init-osf1.c | 5 +++ lib/sysdeps-init-solaris.c | 5 +++ lib/sysdeps-init-stub-suid.c | 5 +++ lib/sysdeps-init-stub.c | 5 +++ sysdeps/freebsd/Makefile.am | 2 +- sysdeps/freebsd/siglist.c | 30 -------------- sysdeps/linux/Makefile.am | 5 +-- sysdeps/linux/siglist.c | 62 ---------------------------- sysdeps/osf1/Makefile.am | 2 +- sysdeps/osf1/siglist.c | 62 ---------------------------- sysdeps/solaris/Makefile.am | 2 +- sysdeps/solaris/siglist.c | 76 ----------------------------------- sysdeps/stub/Makefile.am | 2 +- sysdeps/stub/siglist.c | 30 -------------- sysdeps/stub_suid/Makefile.am | 2 +- sysdeps/stub_suid/siglist.c | 30 -------------- sysdeps/sun4/siglist.c | 62 ---------------------------- 21 files changed, 113 insertions(+), 360 deletions(-) delete mode 100644 sysdeps/freebsd/siglist.c delete mode 100644 sysdeps/linux/siglist.c delete mode 100644 sysdeps/osf1/siglist.c delete mode 100644 sysdeps/solaris/siglist.c delete mode 100644 sysdeps/stub/siglist.c delete mode 100644 sysdeps/stub_suid/siglist.c delete mode 100644 sysdeps/sun4/siglist.c diff --git a/ChangeLog b/ChangeLog index bfc75dbc..28ddb675 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-02-06 Martin Baulig + + * lib/sysdeps-init-*.c (glibtop_sys_siglist): Moved here from + the sysdeps directories. + + * sysdeps/*/siglist.c: Removed. + 2000-02-06 Martin Baulig * glibtop.h (glibtop): Removed `method', `server_command', diff --git a/lib/sysdeps-init-freebsd.c b/lib/sysdeps-init-freebsd.c index 64cdbbad..a16e2216 100644 --- a/lib/sysdeps-init-freebsd.c +++ b/lib/sysdeps-init-freebsd.c @@ -27,6 +27,11 @@ #include #include +#include + +const glibtop_signame glibtop_sys_siglist [] = +{ { 0, NULL, NULL } }; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-kernel.c b/lib/sysdeps-init-kernel.c index 73909ce2..aba1bd25 100644 --- a/lib/sysdeps-init-kernel.c +++ b/lib/sysdeps-init-kernel.c @@ -27,6 +27,43 @@ #include #include +#include + +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). */ + { 31, "SIGUNUSED", NULL }, + { 0, NULL, NULL }, +}; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-linux.c b/lib/sysdeps-init-linux.c index eec9bde6..2653f31f 100644 --- a/lib/sysdeps-init-linux.c +++ b/lib/sysdeps-init-linux.c @@ -27,6 +27,43 @@ #include #include +#include + +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). */ + { 31, "SIGUNUSED", NULL }, + { 0, NULL, NULL }, +}; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-osf1.c b/lib/sysdeps-init-osf1.c index 54798f4d..3ad6da8e 100644 --- a/lib/sysdeps-init-osf1.c +++ b/lib/sysdeps-init-osf1.c @@ -27,6 +27,11 @@ #include #include +#include + +const glibtop_signame glibtop_sys_siglist [] = +{ { 0, NULL, NULL } }; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-solaris.c b/lib/sysdeps-init-solaris.c index 54798f4d..3ad6da8e 100644 --- a/lib/sysdeps-init-solaris.c +++ b/lib/sysdeps-init-solaris.c @@ -27,6 +27,11 @@ #include #include +#include + +const glibtop_signame glibtop_sys_siglist [] = +{ { 0, NULL, NULL } }; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-stub-suid.c b/lib/sysdeps-init-stub-suid.c index 64cdbbad..a16e2216 100644 --- a/lib/sysdeps-init-stub-suid.c +++ b/lib/sysdeps-init-stub-suid.c @@ -27,6 +27,11 @@ #include #include +#include + +const glibtop_signame glibtop_sys_siglist [] = +{ { 0, NULL, NULL } }; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/lib/sysdeps-init-stub.c b/lib/sysdeps-init-stub.c index eec9bde6..3e6879ad 100644 --- a/lib/sysdeps-init-stub.c +++ b/lib/sysdeps-init-stub.c @@ -27,6 +27,11 @@ #include #include +#include + +const glibtop_signame glibtop_sys_siglist [] = +{ { 0, NULL, NULL } }; + void _glibtop_open_sysdeps (glibtop *server, const char *program_name, const unsigned long features, const unsigned flags) diff --git a/sysdeps/freebsd/Makefile.am b/sysdeps/freebsd/Makefile.am index 0c5b692c..95477e51 100644 --- a/sysdeps/freebsd/Makefile.am +++ b/sysdeps/freebsd/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la -libgtop_sysdeps_la_SOURCES = nosuid.c siglist.c +libgtop_sysdeps_la_SOURCES = nosuid.c libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) diff --git a/sysdeps/freebsd/siglist.c b/sysdeps/freebsd/siglist.c deleted file mode 100644 index 329b7ccc..00000000 --- a/sysdeps/freebsd/siglist.c +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 0, NULL, NULL } }; diff --git a/sysdeps/linux/Makefile.am b/sysdeps/linux/Makefile.am index 54791821..a47dd604 100644 --- a/sysdeps/linux/Makefile.am +++ b/sysdeps/linux/Makefile.am @@ -10,9 +10,8 @@ libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c swap.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \ sem_limits.c proclist.c procstate.c procuid.c \ proctime.c procmem.c procsignal.c prockernel.c \ - procsegment.c procargs.c procmap.c siglist.c \ - sysinfo.c interfaces.c netinfo.c netload.c \ - ppp.c + procsegment.c procargs.c procmap.c sysinfo.c \ + interfaces.c netinfo.c netload.c ppp.c libgtop_sysdeps_la_LIBADD = @GLIB_LIBS@ libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) -export-dynamic diff --git a/sysdeps/linux/siglist.c b/sysdeps/linux/siglist.c deleted file mode 100644 index ef58e9c9..00000000 --- a/sysdeps/linux/siglist.c +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -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). */ - { 31, "SIGUNUSED", NULL }, - { 0, NULL, NULL }, -}; diff --git a/sysdeps/osf1/Makefile.am b/sysdeps/osf1/Makefile.am index 65932486..dee12078 100644 --- a/sysdeps/osf1/Makefile.am +++ b/sysdeps/osf1/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la -libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \ +libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c swap.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \ sem_limits.c ppp.c libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) diff --git a/sysdeps/osf1/siglist.c b/sysdeps/osf1/siglist.c deleted file mode 100644 index e41267ae..00000000 --- a/sysdeps/osf1/siglist.c +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 1, "SIGHUP", N_("Hangup") }, - { 2, "SIGINT", N_("Interrupt") }, - { 3, "SIGQUIT", N_("Quit") }, - { 4, "SIGILL", N_("Illegal instruction") }, - { 5, "SIGTRAP", N_("Trace trap") }, - { 6, "SIGABRT", N_("Abort") }, - { 7, "SIGEMT", N_("EMT error") }, - { 8, "SIGFPE", N_("Floating-point exception") }, - { 9, "SIGKILL", N_("Kill") }, - { 10, "SIGBUS", N_("Bus error") }, - { 11, "SIGSEGV", N_("Segmentation violation") }, - { 12, "SIGSYS", N_("Bad argument to system call") }, - { 13, "SIGPIPE", N_("Broken pipe") }, - { 14, "SIGALRM", N_("Alarm clock") }, - { 15, "SIGTERM", N_("Termination") }, - { 16, "SIGURG", N_("Urgent condition on socket") }, - { 17, "SIGSTOP", N_("Stop") }, - { 18, "SIGTSTP", N_("Keyboard stop") }, - { 19, "SIGCONT", N_("Continue") }, - { 20, "SIGCHLD", N_("Child status has changed") }, - { 21, "SIGTTIN", N_("Background read from tty") }, - { 22, "SIGTTOU", N_("Background write to tty") }, - { 23, "SIGIO", N_("I/O now possible") }, - { 24, "SIGXCPU", N_("CPU limit exceeded") }, - { 25, "SIGXFSZ", N_("File size limit exceeded") }, - { 26, "SIGVTALRM", N_("Virtual alarm clock") }, - { 27, "SIGPROF", N_("Profiling alarm clock") }, - { 28, "SIGWINCH", N_("Window size change") }, - { 29, "SIGINFO", N_("Information request") }, - { 30, "SIGUSR1", N_("User defined signal 1") }, - { 31, "SIGUSR2", N_("User defined signal 2") }, - { 0, NULL, NULL }, -}; diff --git a/sysdeps/solaris/Makefile.am b/sysdeps/solaris/Makefile.am index 68d6dff1..b87d1e67 100644 --- a/sysdeps/solaris/Makefile.am +++ b/sysdeps/solaris/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la -libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c \ +libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c \ safeio.c swap.c uptime.c loadavg.c \ proclist.c procstate.c procuid.c \ proctime.c procmem.c procsignal.c \ diff --git a/sysdeps/solaris/siglist.c b/sysdeps/solaris/siglist.c deleted file mode 100644 index c5e5073a..00000000 --- a/sysdeps/solaris/siglist.c +++ /dev/null @@ -1,76 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 1, "SIGHUP", "Hangup" }, - { 2, "SIGINT", "Interrupt" }, - { 3, "SIGQUIT", "Quit" }, - { 4, "SIGILL", "Illegal Instruction" }, - { 5, "SIGTRAP", "Trace/Breakpoint Trap" }, - { 6, "SIGABRT", "Abort" }, - { 7, "SIGEMT", "Emulation Trap" }, - { 8, "SIGFPE", "Arithmetic Exception" }, - { 9, "SIGKILL", "Killed" }, - { 10, "SIGBUS", "Bus Error" }, - { 11, "SIGSEGV", "Segmentation Fault" }, - { 12, "SIGSYS", "Bad System Call" }, - { 13, "SIGPIPE", "Broken Pipe" }, - { 14, "SIGALRM", "Alarm Clock" }, - { 15, "SIGTERM", "Terminated" }, - { 16, "SIGUSR1", "User Signal 1" }, - { 17, "SIGUSR2", "User Signal 2" }, - { 18, "SIGCHLD", "Child Status Changed" }, - { 19, "SIGPWR", "Power-Fail/Restart" }, - { 20, "SIGWINCH","Window Size Change" }, - { 21, "SIGURG", "Urgent Socket Condition" }, - { 22, "SIGPOLL", "Pollable Event" }, - { 23, "SIGSTOP", "Stoped (signal)" }, - { 24, "SIGTSTP", "Stopped (user)" }, - { 25, "SIGCONT", "Continued" }, - { 26, "SIGTTIN", "Stopped (tty input)" }, - { 27, "SIGTTOU", "Stopped (tty output)" }, - { 28, "SIGVTALRM","Virtual Timer Expired" }, - { 29, "SIGPROF", "Profiling Timer Expired" }, - { 30, "SIGXCPU", "Cpu Limit Exceeded" }, - { 31, "SIGXFSZ", "File Size Limit Exceeded" }, - { 32, "SIGWAITING","No runnable lwp" }, - { 33, "SIGLWP", "Inter-lwp signal" }, - { 34, "SIGFREEZE","Checkpoint Freeze" }, - { 35, "SIGTHAW", "Checkpoint Thaw" }, - { 36, "SIGCANCEL","Thread Cancelation" }, - { 37, "SIGLOST", "Resource Lost" }, - { 38, "SIGRTMIN","First Realtime Signal" }, - { 39, "SIGRTMIN+1", "Second Realtime Signal" }, - { 40, "SIGRTMIN+2", "Third Realtime Signal" }, - { 41, "SIGRTMIN+3", "Fourth Realtime Signal" }, - { 42, "SIGRTMAX-3", "Fourth Last Realtime Signal" }, - { 43, "SIGRTMAX-2", "Third Last Realtime Signal" }, - { 44, "SIGRTMAX-1", "Second Last Realtime Signal" }, - { 45, "SIGRTMAX", "Last Realtime Signal" }, - { 0, NULL, NULL } -}; diff --git a/sysdeps/stub/Makefile.am b/sysdeps/stub/Makefile.am index 35fdf37d..29f1e593 100644 --- a/sysdeps/stub/Makefile.am +++ b/sysdeps/stub/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop_sysdeps.la -libgtop_sysdeps_la_SOURCES = open.c close.c siglist.c cpu.c mem.c swap.c \ +libgtop_sysdeps_la_SOURCES = open.c close.c cpu.c mem.c swap.c \ uptime.c loadavg.c shm_limits.c msg_limits.c \ sem_limits.c proclist.c procstate.c procuid.c \ proctime.c procmem.c procsignal.c prockernel.c \ diff --git a/sysdeps/stub/siglist.c b/sysdeps/stub/siglist.c deleted file mode 100644 index 329b7ccc..00000000 --- a/sysdeps/stub/siglist.c +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 0, NULL, NULL } }; diff --git a/sysdeps/stub_suid/Makefile.am b/sysdeps/stub_suid/Makefile.am index cfb9daad..b6ba6bf4 100644 --- a/sysdeps/stub_suid/Makefile.am +++ b/sysdeps/stub_suid/Makefile.am @@ -4,7 +4,7 @@ INCLUDES = @INCLUDES@ lib_LTLIBRARIES = libgtop_sysdeps.la libgtop_sysdeps_suid.la -libgtop_sysdeps_la_SOURCES = nosuid.c siglist.c +libgtop_sysdeps_la_SOURCES = nosuid.c libgtop_sysdeps_la_LDFLAGS = $(LT_VERSION_INFO) diff --git a/sysdeps/stub_suid/siglist.c b/sysdeps/stub_suid/siglist.c deleted file mode 100644 index 329b7ccc..00000000 --- a/sysdeps/stub_suid/siglist.c +++ /dev/null @@ -1,30 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 0, NULL, NULL } }; diff --git a/sysdeps/sun4/siglist.c b/sysdeps/sun4/siglist.c deleted file mode 100644 index e41267ae..00000000 --- a/sysdeps/sun4/siglist.c +++ /dev/null @@ -1,62 +0,0 @@ -/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 4 -*- */ - -/* $Id$ */ - -/* Copyright (C) 1998-99 Martin Baulig - This file is part of LibGTop 1.0. - - Contributed by Martin Baulig , April 1998. - - LibGTop is free software; you can redistribute it and/or modify it - under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, - or (at your option) any later version. - - LibGTop is distributed in the hope that it will be useful, but WITHOUT - ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License - along with LibGTop; see the file COPYING. If not, write to the - Free Software Foundation, Inc., 59 Temple Place - Suite 330, - Boston, MA 02111-1307, USA. -*/ - -#include -#include - -const glibtop_signame glibtop_sys_siglist [] = -{ { 1, "SIGHUP", N_("Hangup") }, - { 2, "SIGINT", N_("Interrupt") }, - { 3, "SIGQUIT", N_("Quit") }, - { 4, "SIGILL", N_("Illegal instruction") }, - { 5, "SIGTRAP", N_("Trace trap") }, - { 6, "SIGABRT", N_("Abort") }, - { 7, "SIGEMT", N_("EMT error") }, - { 8, "SIGFPE", N_("Floating-point exception") }, - { 9, "SIGKILL", N_("Kill") }, - { 10, "SIGBUS", N_("Bus error") }, - { 11, "SIGSEGV", N_("Segmentation violation") }, - { 12, "SIGSYS", N_("Bad argument to system call") }, - { 13, "SIGPIPE", N_("Broken pipe") }, - { 14, "SIGALRM", N_("Alarm clock") }, - { 15, "SIGTERM", N_("Termination") }, - { 16, "SIGURG", N_("Urgent condition on socket") }, - { 17, "SIGSTOP", N_("Stop") }, - { 18, "SIGTSTP", N_("Keyboard stop") }, - { 19, "SIGCONT", N_("Continue") }, - { 20, "SIGCHLD", N_("Child status has changed") }, - { 21, "SIGTTIN", N_("Background read from tty") }, - { 22, "SIGTTOU", N_("Background write to tty") }, - { 23, "SIGIO", N_("I/O now possible") }, - { 24, "SIGXCPU", N_("CPU limit exceeded") }, - { 25, "SIGXFSZ", N_("File size limit exceeded") }, - { 26, "SIGVTALRM", N_("Virtual alarm clock") }, - { 27, "SIGPROF", N_("Profiling alarm clock") }, - { 28, "SIGWINCH", N_("Window size change") }, - { 29, "SIGINFO", N_("Information request") }, - { 30, "SIGUSR1", N_("User defined signal 1") }, - { 31, "SIGUSR2", N_("User defined signal 2") }, - { 0, NULL, NULL }, -};