1 // Copyright 2014 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 5 package runtime 6 7 type sigTabT struct { 8 flags int32 9 name string 10 } 11 12 var sigtable = [...]sigTabT{ 13 /* 0 */ {0, "SIGNONE: no trap"}, 14 /* 1 */ {_SigNotify + _SigKill, "SIGHUP: hangup"}, 15 /* 2 */ {_SigNotify + _SigKill, "SIGINT: interrupt (rubout)"}, 16 /* 3 */ {_SigNotify + _SigThrow, "SIGQUIT: quit (ASCII FS)"}, 17 /* 4 */ {_SigThrow + _SigUnblock, "SIGILL: illegal instruction (not reset when caught)"}, 18 /* 5 */ {_SigThrow + _SigUnblock, "SIGTRAP: trace trap (not reset when caught)"}, 19 /* 6 */ {_SigNotify + _SigThrow, "SIGABRT: used by abort, replace SIGIOT in the future"}, 20 /* 7 */ {_SigThrow, "SIGEMT: EMT instruction"}, 21 /* 8 */ {_SigPanic + _SigUnblock, "SIGFPE: floating point exception"}, 22 /* 9 */ {0, "SIGKILL: kill (cannot be caught or ignored)"}, 23 /* 10 */ {_SigPanic + _SigUnblock, "SIGBUS: bus error"}, 24 /* 11 */ {_SigPanic + _SigUnblock, "SIGSEGV: segmentation violation"}, 25 /* 12 */ {_SigThrow, "SIGSYS: bad argument to system call"}, 26 /* 13 */ {_SigNotify, "SIGPIPE: write on a pipe with no one to read it"}, 27 /* 14 */ {_SigNotify, "SIGALRM: alarm clock"}, 28 /* 15 */ {_SigNotify + _SigKill, "SIGTERM: software termination signal from kill"}, 29 /* 16 */ {_SigNotify, "SIGUSR1: user defined signal 1"}, 30 /* 17 */ {_SigNotify, "SIGUSR2: user defined signal 2"}, 31 /* 18 */ {_SigNotify + _SigUnblock, "SIGCHLD: child status change alias (POSIX)"}, 32 /* 19 */ {_SigNotify, "SIGPWR: power-fail restart"}, 33 /* 20 */ {_SigNotify, "SIGWINCH: window size change"}, 34 /* 21 */ {_SigNotify, "SIGURG: urgent socket condition"}, 35 /* 22 */ {_SigNotify, "SIGPOLL: pollable event occured"}, 36 /* 23 */ {_SigNotify + _SigDefault, "SIGSTOP: stop (cannot be caught or ignored)"}, 37 /* 24 */ {0, "SIGTSTP: user stop requested from tty"}, 38 /* 25 */ {0, "SIGCONT: stopped process has been continued"}, 39 /* 26 */ {_SigNotify + _SigDefault, "SIGTTIN: background tty read attempted"}, 40 /* 27 */ {_SigNotify + _SigDefault, "SIGTTOU: background tty write attempted"}, 41 /* 28 */ {_SigNotify, "SIGVTALRM: virtual timer expired"}, 42 /* 29 */ {_SigNotify + _SigUnblock, "SIGPROF: profiling timer expired"}, 43 /* 30 */ {_SigNotify, "SIGXCPU: exceeded cpu limit"}, 44 /* 31 */ {_SigNotify, "SIGXFSZ: exceeded file size limit"}, 45 /* 32 */ {_SigNotify, "SIGWAITING: reserved signal no longer used by"}, 46 /* 33 */ {_SigNotify, "SIGLWP: reserved signal no longer used by"}, 47 /* 34 */ {_SigNotify, "SIGFREEZE: special signal used by CPR"}, 48 /* 35 */ {_SigNotify, "SIGTHAW: special signal used by CPR"}, 49 /* 36 */ {0, "SIGCANCEL: reserved signal for thread cancellation"}, 50 /* 37 */ {_SigNotify, "SIGLOST: resource lost (eg, record-lock lost)"}, 51 /* 38 */ {_SigNotify, "SIGXRES: resource control exceeded"}, 52 /* 39 */ {_SigNotify, "SIGJVM1: reserved signal for Java Virtual Machine"}, 53 /* 40 */ {_SigNotify, "SIGJVM2: reserved signal for Java Virtual Machine"}, 54 55 /* TODO(aram): what should be do about these signals? _SigDefault or _SigNotify? is this set static? */ 56 /* 41 */ {_SigNotify, "real time signal"}, 57 /* 42 */ {_SigNotify, "real time signal"}, 58 /* 43 */ {_SigNotify, "real time signal"}, 59 /* 44 */ {_SigNotify, "real time signal"}, 60 /* 45 */ {_SigNotify, "real time signal"}, 61 /* 46 */ {_SigNotify, "real time signal"}, 62 /* 47 */ {_SigNotify, "real time signal"}, 63 /* 48 */ {_SigNotify, "real time signal"}, 64 /* 49 */ {_SigNotify, "real time signal"}, 65 /* 50 */ {_SigNotify, "real time signal"}, 66 /* 51 */ {_SigNotify, "real time signal"}, 67 /* 52 */ {_SigNotify, "real time signal"}, 68 /* 53 */ {_SigNotify, "real time signal"}, 69 /* 54 */ {_SigNotify, "real time signal"}, 70 /* 55 */ {_SigNotify, "real time signal"}, 71 /* 56 */ {_SigNotify, "real time signal"}, 72 /* 57 */ {_SigNotify, "real time signal"}, 73 /* 58 */ {_SigNotify, "real time signal"}, 74 /* 59 */ {_SigNotify, "real time signal"}, 75 /* 60 */ {_SigNotify, "real time signal"}, 76 /* 61 */ {_SigNotify, "real time signal"}, 77 /* 62 */ {_SigNotify, "real time signal"}, 78 /* 63 */ {_SigNotify, "real time signal"}, 79 /* 64 */ {_SigNotify, "real time signal"}, 80 /* 65 */ {_SigNotify, "real time signal"}, 81 /* 66 */ {_SigNotify, "real time signal"}, 82 /* 67 */ {_SigNotify, "real time signal"}, 83 /* 68 */ {_SigNotify, "real time signal"}, 84 /* 69 */ {_SigNotify, "real time signal"}, 85 /* 70 */ {_SigNotify, "real time signal"}, 86 /* 71 */ {_SigNotify, "real time signal"}, 87 /* 72 */ {_SigNotify, "real time signal"}, 88 } 89