2014-07-29 Ed Smith-Rowland <3dw4rd@verizon.net>
[official-gcc.git] / libgo / runtime / signal_unix.h
blob1c51740bf1dd132400d1c06ac64777518c177173
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.
5 #include <signal.h>
7 #define GO_SIG_DFL ((void*)SIG_DFL)
8 #define GO_SIG_IGN ((void*)SIG_IGN)
10 #ifdef SA_SIGINFO
11 typedef siginfo_t Siginfo;
12 #else
13 typedef void *Siginfo;
14 #endif
16 typedef void GoSighandler(int32, Siginfo*, void*, G*);
17 void runtime_setsig(int32, GoSighandler*, bool);
18 GoSighandler* runtime_getsig(int32);
20 void runtime_sighandler(int32 sig, Siginfo *info, void *context, G *gp);
21 void runtime_raise(int32);