blob: 1c51740bf1dd132400d1c06ac64777518c177173 [file] [log] [blame]
// Copyright 2013 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.
#include <signal.h>
#define GO_SIG_DFL ((void*)SIG_DFL)
#define GO_SIG_IGN ((void*)SIG_IGN)
typedef siginfo_t Siginfo;
typedef void *Siginfo;
typedef void GoSighandler(int32, Siginfo*, void*, G*);
void runtime_setsig(int32, GoSighandler*, bool);
GoSighandler* runtime_getsig(int32);
void runtime_sighandler(int32 sig, Siginfo *info, void *context, G *gp);
void runtime_raise(int32);