github.com/xushiwei/go@v0.0.0-20130601165731-2b9d83f45bc9/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  struct sigaction;
    12  
    13  void	runtime·sigpanic(void);
    14  
    15  void	runtime·setitimer(int32, Itimerval*, Itimerval*);
    16  void	runtime·sigaction(int32, struct sigaction*, struct sigaction*);
    17  void	runtime·sigaltstack(Sigaltstack*, Sigaltstack*);
    18  void	runtime·sigprocmask(int32, Sigset*, Sigset*);
    19  int32	runtime·sysctl(uint32*, uint32, byte*, uintptr*, byte*, uintptr);
    20  extern void runtime·lwp_tramp(void);
    21  
    22  #define	NSIG 33
    23  #define	SI_USER	0
    24  
    25  // From NetBSD's <sys/ucontext.h>
    26  #define _UC_SIGMASK	0x01
    27  #define _UC_CPU		0x04