diff options
Diffstat (limited to 'src/pkg/runtime/linux/signals.h')
-rw-r--r-- | src/pkg/runtime/linux/signals.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/src/pkg/runtime/linux/signals.h b/src/pkg/runtime/linux/signals.h new file mode 100644 index 000000000..919b80ea2 --- /dev/null +++ b/src/pkg/runtime/linux/signals.h @@ -0,0 +1,51 @@ +// Copyright 2009 The Go Authors. All rights reserved. +// Use of this source code is governed by a BSD-style +// license that can be found in the LICENSE file. + +#define C SigCatch +#define I SigIgnore +#define R SigRestart +#define Q SigQueue +#define P SigPanic + +SigTab runtimeĀ·sigtab[] = { + /* 0 */ 0, "SIGNONE: no trap", + /* 1 */ Q+R, "SIGHUP: terminal line hangup", + /* 2 */ Q+R, "SIGINT: interrupt", + /* 3 */ C, "SIGQUIT: quit", + /* 4 */ C+P, "SIGILL: illegal instruction", + /* 5 */ C, "SIGTRAP: trace trap", + /* 6 */ C, "SIGABRT: abort", + /* 7 */ C+P, "SIGBUS: bus error", + /* 8 */ C+P, "SIGFPE: floating-point exception", + /* 9 */ 0, "SIGKILL: kill", + /* 10 */ Q+I+R, "SIGUSR1: user-defined signal 1", + /* 11 */ C+P, "SIGSEGV: segmentation violation", + /* 12 */ Q+I+R, "SIGUSR2: user-defined signal 2", + /* 13 */ I, "SIGPIPE: write to broken pipe", + /* 14 */ Q+I+R, "SIGALRM: alarm clock", + /* 15 */ Q+R, "SIGTERM: termination", + /* 16 */ C, "SIGSTKFLT: stack fault", + /* 17 */ Q+I+R, "SIGCHLD: child status has changed", + /* 18 */ 0, "SIGCONT: continue", + /* 19 */ 0, "SIGSTOP: stop, unblockable", + /* 20 */ Q+I+R, "SIGTSTP: keyboard stop", + /* 21 */ Q+I+R, "SIGTTIN: background read from tty", + /* 22 */ Q+I+R, "SIGTTOU: background write to tty", + /* 23 */ Q+I+R, "SIGURG: urgent condition on socket", + /* 24 */ Q+I+R, "SIGXCPU: cpu limit exceeded", + /* 25 */ Q+I+R, "SIGXFSZ: file size limit exceeded", + /* 26 */ Q+I+R, "SIGVTALRM: virtual alarm clock", + /* 27 */ Q+I+R, "SIGPROF: profiling alarm clock", + /* 28 */ Q+I+R, "SIGWINCH: window size change", + /* 29 */ Q+I+R, "SIGIO: i/o now possible", + /* 30 */ Q+I+R, "SIGPWR: power failure restart", + /* 31 */ C, "SIGSYS: bad system call", +}; +#undef C +#undef I +#undef R +#undef Q +#undef P + +#define NSIG 32 |