github.com/varialus/godfly@v0.0.0-20130904042352-1934f9f095ab/src/pkg/runtime/os_netbsd.h (about) 1 // Copyright 2010 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 SS_DISABLE 4 6 7 #define SIG_BLOCK 1 8 #define SIG_UNBLOCK 2 9 #define SIG_SETMASK 3 10 11 typedef uintptr kevent_udata; 12 13 struct sigaction; 14 15 void runtime·sigpanic(void); 16 17 void runtime·setitimer(int32, Itimerval*, Itimerval*); 18 void runtime·sigaction(int32, struct sigaction*, struct sigaction*); 19 void runtime·sigaltstack(Sigaltstack*, Sigaltstack*); 20 void runtime·sigprocmask(int32, Sigset*, Sigset*); 21 int32 runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr); 22 extern void runtime·lwp_tramp(void); 23 24 #define NSIG 33 25 #define SI_USER 0 26 27 // From NetBSD's <sys/ucontext.h> 28 #define _UC_SIGMASK 0x01 29 #define _UC_CPU 0x04