github.com/spotify/syslog-redirector-golang@v0.0.0-20140320174030-4859f03d829a/src/pkg/runtime/signals_plan9.h (about) 1 // Copyright 2011 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 #define N SigNotify 6 #define T SigThrow 7 #define P SigPanic 8 9 SigTab runtimeĀ·sigtab[] = { 10 P, "sys: fp:", 11 12 // Go libraries expect to be able 13 // to recover from memory 14 // read/write errors, so we flag 15 // those as panics. All other traps 16 // are generally more serious and 17 // should immediately throw an 18 // exception. 19 P, "sys: trap: fault read addr", 20 P, "sys: trap: fault write addr", 21 T, "sys: trap:", 22 23 N, "sys: bad sys call", 24 }; 25 26 #undef N 27 #undef T 28 #undef P