blob: d93a450d987c30a2a0cdaad00f5107354e1a5b93 [file] [log] [blame]
Joel Singcfc80992014-11-22 16:05:31 +11001// Copyright 2009 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
5package runtime
6
7type sigTabT struct {
8 flags int32
9 name string
10}
11
12var sigtable = [...]sigTabT{
13 /* 0 */ {0, "SIGNONE: no trap"},
14 /* 1 */ {_SigNotify + _SigKill, "SIGHUP: terminal line hangup"},
15 /* 2 */ {_SigNotify + _SigKill, "SIGINT: interrupt"},
16 /* 3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit"},
Elias Naur84cfba12015-05-18 11:00:24 +020017 /* 4 */ {_SigThrow + _SigUnblock, "SIGILL: illegal instruction"},
18 /* 5 */ {_SigThrow + _SigUnblock, "SIGTRAP: trace trap"},
Joel Singcfc80992014-11-22 16:05:31 +110019 /* 6 */ {_SigNotify + _SigThrow, "SIGABRT: abort"},
20 /* 7 */ {_SigThrow, "SIGEMT: emulate instruction executed"},
Elias Naur84cfba12015-05-18 11:00:24 +020021 /* 8 */ {_SigPanic + _SigUnblock, "SIGFPE: floating-point exception"},
Joel Singcfc80992014-11-22 16:05:31 +110022 /* 9 */ {0, "SIGKILL: kill"},
Elias Naur84cfba12015-05-18 11:00:24 +020023 /* 10 */ {_SigPanic + _SigUnblock, "SIGBUS: bus error"},
24 /* 11 */ {_SigPanic + _SigUnblock, "SIGSEGV: segmentation violation"},
Joel Singcfc80992014-11-22 16:05:31 +110025 /* 12 */ {_SigThrow, "SIGSYS: bad system call"},
26 /* 13 */ {_SigNotify, "SIGPIPE: write to broken pipe"},
27 /* 14 */ {_SigNotify, "SIGALRM: alarm clock"},
28 /* 15 */ {_SigNotify + _SigKill, "SIGTERM: termination"},
29 /* 16 */ {_SigNotify, "SIGURG: urgent condition on socket"},
30 /* 17 */ {0, "SIGSTOP: stop"},
31 /* 18 */ {_SigNotify + _SigDefault, "SIGTSTP: keyboard stop"},
32 /* 19 */ {0, "SIGCONT: continue after stop"},
Elias Naur84cfba12015-05-18 11:00:24 +020033 /* 20 */ {_SigNotify + _SigUnblock, "SIGCHLD: child status has changed"},
Joel Singcfc80992014-11-22 16:05:31 +110034 /* 21 */ {_SigNotify + _SigDefault, "SIGTTIN: background read from tty"},
35 /* 22 */ {_SigNotify + _SigDefault, "SIGTTOU: background write to tty"},
36 /* 23 */ {_SigNotify, "SIGIO: i/o now possible"},
37 /* 24 */ {_SigNotify, "SIGXCPU: cpu limit exceeded"},
38 /* 25 */ {_SigNotify, "SIGXFSZ: file size limit exceeded"},
39 /* 26 */ {_SigNotify, "SIGVTALRM: virtual alarm clock"},
Elias Naur84cfba12015-05-18 11:00:24 +020040 /* 27 */ {_SigNotify + _SigUnblock, "SIGPROF: profiling alarm clock"},
Joel Singcfc80992014-11-22 16:05:31 +110041 /* 28 */ {_SigNotify, "SIGWINCH: window size change"},
42 /* 29 */ {_SigNotify, "SIGINFO: status request from keyboard"},
43 /* 30 */ {_SigNotify, "SIGUSR1: user-defined signal 1"},
44 /* 31 */ {_SigNotify, "SIGUSR2: user-defined signal 2"},
45 /* 32 */ {_SigNotify, "SIGTHR: reserved"},
46}