File: siglist.c

package info (click to toggle)
libgtop2 2.40.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid
  • size: 8,072 kB
  • sloc: ansic: 25,393; sh: 7,089; makefile: 418; perl: 268; xml: 179; sed: 16
file content (143 lines) | stat: -rw-r--r-- 4,022 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
/* Copyright (C) 1998-99 Martin Baulig
   This file is part of LibGTop 1.0.

   Contributed by Martin Baulig <martin@home-of-linux.org>, 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., 51 Franklin Street, Fifth Floor,
   Boston, MA 02110-1301, USA.
*/


#include <config.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 [] =
{
#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}
};