1 // Copyright 2013 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 #include <signal.h>
6 
7 #define GO_SIG_DFL ((void*)SIG_DFL)
8 #define GO_SIG_IGN ((void*)SIG_IGN)
9 
10 #ifdef SA_SIGINFO
11 typedef siginfo_t Siginfo;
12 #else
13 typedef void *Siginfo;
14 #endif
15 
16 typedef void GoSighandler(int32, Siginfo*, void*, G*);
17 void	runtime_setsig(int32, GoSighandler*, bool);
18 GoSighandler* runtime_getsig(int32);
19 
20 void	runtime_sighandler(int32 sig, Siginfo *info, void *context, G *gp);
21 void	runtime_raise(int32);
22 
23