Blame sysdeps/linux/siglist.c

Packit Service 407539
/* Copyright (C) 1998-99 Martin Baulig
Packit Service 407539
   This file is part of LibGTop 1.0.
Packit Service 407539
Packit Service 407539
   Contributed by Martin Baulig <martin@home-of-linux.org>, April 1998.
Packit Service 407539
Packit Service 407539
   LibGTop is free software; you can redistribute it and/or modify it
Packit Service 407539
   under the terms of the GNU General Public License as published by
Packit Service 407539
   the Free Software Foundation; either version 2 of the License,
Packit Service 407539
   or (at your option) any later version.
Packit Service 407539
Packit Service 407539
   LibGTop is distributed in the hope that it will be useful, but WITHOUT
Packit Service 407539
   ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
Packit Service 407539
   FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
Packit Service 407539
   for more details.
Packit Service 407539
Packit Service 407539
   You should have received a copy of the GNU General Public License
Packit Service 407539
   along with LibGTop; see the file COPYING. If not, write to the
Packit Service 407539
   Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Packit Service 407539
   Boston, MA 02110-1301, USA.
Packit Service 407539
*/
Packit Service 407539
Packit Service 407539
Packit Service 407539
#include <config.h>
Packit Service 407539
#include <glibtop/signal.h>
Packit Service 407539
Packit Service 407539
#include <signal.h>
Packit Service 407539
Packit Service 407539
Packit Service 407539
#if 0 /* comment */
Packit Service 407539
perl -nle 'print "{$1,\t\"$1\",\t\"$2\"}," if m|^#define\s*(SIG[A-Z0-9]+).*?/\*\s*(.*?)\s*\*/|'
Packit Service 407539
	< /usr/include/bits/signum.h
Packit Service 407539
#endif
Packit Service 407539
Packit Service 407539
Packit Service 407539
const glibtop_signame glibtop_sys_siglist [] =
Packit Service 407539
{
Packit Service 407539
#ifdef SIGHUP
Packit Service 407539
	{SIGHUP,	"SIGHUP",       "Hangup (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGINT
Packit Service 407539
	{SIGINT,	"SIGINT",       "Interrupt (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGQUIT
Packit Service 407539
	{SIGQUIT,       "SIGQUIT",      "Quit (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGILL
Packit Service 407539
	{SIGILL,	"SIGILL",       "Illegal instruction (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGTRAP
Packit Service 407539
	{SIGTRAP,       "SIGTRAP",      "Trace trap (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGABRT
Packit Service 407539
	{SIGABRT,       "SIGABRT",      "Abort (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGIOT
Packit Service 407539
	{SIGIOT,	"SIGIOT",       "IOT trap (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGBUS
Packit Service 407539
	{SIGBUS,	"SIGBUS",       "BUS error (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGFPE
Packit Service 407539
	{SIGFPE,	"SIGFPE",       "Floating-point exception (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGKILL
Packit Service 407539
	{SIGKILL,       "SIGKILL",      "Kill, unblockable (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGUSR1
Packit Service 407539
	{SIGUSR1,	"SIGUSR1",      "User-defined signal 1 (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGSEGV
Packit Service 407539
	{SIGSEGV,	"SIGSEGV",      "Segmentation violation (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGUSR2
Packit Service 407539
	{SIGUSR2,	"SIGUSR2",      "User-defined signal 2 (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGPIPE
Packit Service 407539
	{SIGPIPE,       "SIGPIPE",      "Broken pipe (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGALRM
Packit Service 407539
	{SIGALRM,       "SIGALRM",      "Alarm clock (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGTERM
Packit Service 407539
	{SIGTERM,       "SIGTERM",      "Termination (ANSI)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGSTKFLT
Packit Service 407539
	{SIGSTKFLT,     "SIGSTKFLT",    "Stack fault."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGCLD
Packit Service 407539
	{SIGCLD,	"SIGCLD",       "Same as SIGCHLD (System V)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGCHLD
Packit Service 407539
	{SIGCHLD,       "SIGCHLD",      "Child status has changed (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGCONT
Packit Service 407539
	{SIGCONT,       "SIGCONT",      "Continue (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGSTOP
Packit Service 407539
	{SIGSTOP,       "SIGSTOP",      "Stop, unblockable (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGTSTP
Packit Service 407539
	{SIGTSTP,       "SIGTSTP",      "Keyboard stop (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGTTIN
Packit Service 407539
	{SIGTTIN,       "SIGTTIN",      "Background read from tty (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGTTOU
Packit Service 407539
	{SIGTTOU,       "SIGTTOU",      "Background write to tty (POSIX)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGURG
Packit Service 407539
	{SIGURG,	"SIGURG",       "Urgent condition on socket (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGXCPU
Packit Service 407539
	{SIGXCPU,       "SIGXCPU",      "CPU limit exceeded (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGXFSZ
Packit Service 407539
	{SIGXFSZ,       "SIGXFSZ",      "File size limit exceeded (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGVTALRM
Packit Service 407539
	{SIGVTALRM,     "SIGVTALRM",    "Virtual alarm clock (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGPROF
Packit Service 407539
	{SIGPROF,       "SIGPROF",      "Profiling alarm clock (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGWINCH
Packit Service 407539
	{SIGWINCH,      "SIGWINCH",     "Window size change (4.3 BSD, Sun)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGPOLL
Packit Service 407539
	{SIGPOLL,       "SIGPOLL",      "Pollable event occurred (System V)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGIO
Packit Service 407539
	{SIGIO,		"SIGIO",	"I/O now possible (4.2 BSD)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGPWR
Packit Service 407539
	{SIGPWR,	"SIGPWR",       "Power failure restart (System V)."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGSYS
Packit Service 407539
	{SIGSYS,	"SIGSYS",       "Bad system call."},
Packit Service 407539
#endif
Packit Service 407539
#ifdef SIGUNUSED
Packit Service 407539
	{SIGUNUSED,	"SIGUNUSED",	""},
Packit Service 407539
#endif
Packit Service 407539
	{0,		NULL,		NULL}
Packit Service 407539
};