1 // Copyright 2009 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 // +build ignore 6 7 /* 8 Input to cgo. 9 10 GOARCH=amd64 go tool cgo -cdefs defs_netbsd.go defs_netbsd_amd64.go >defs_netbsd_amd64.h 11 GOARCH=386 go tool cgo -cdefs defs_netbsd.go defs_netbsd_386.go >defs_netbsd_386.h 12 GOARCH=arm go tool cgo -cdefs defs_netbsd.go defs_netbsd_arm.go >defs_netbsd_arm.h 13 */ 14 15 // +godefs map __fpregset_t [644]byte 16 17 package runtime 18 19 /* 20 #include <sys/types.h> 21 #include <sys/mman.h> 22 #include <sys/signal.h> 23 #include <sys/event.h> 24 #include <sys/time.h> 25 #include <sys/ucontext.h> 26 #include <sys/unistd.h> 27 #include <errno.h> 28 #include <signal.h> 29 */ 30 import "C" 31 32 const ( 33 EINTR = C.EINTR 34 EFAULT = C.EFAULT 35 36 PROT_NONE = C.PROT_NONE 37 PROT_READ = C.PROT_READ 38 PROT_WRITE = C.PROT_WRITE 39 PROT_EXEC = C.PROT_EXEC 40 41 MAP_ANON = C.MAP_ANON 42 MAP_PRIVATE = C.MAP_PRIVATE 43 MAP_FIXED = C.MAP_FIXED 44 45 MADV_FREE = C.MADV_FREE 46 47 SA_SIGINFO = C.SA_SIGINFO 48 SA_RESTART = C.SA_RESTART 49 SA_ONSTACK = C.SA_ONSTACK 50 51 SIGHUP = C.SIGHUP 52 SIGINT = C.SIGINT 53 SIGQUIT = C.SIGQUIT 54 SIGILL = C.SIGILL 55 SIGTRAP = C.SIGTRAP 56 SIGABRT = C.SIGABRT 57 SIGEMT = C.SIGEMT 58 SIGFPE = C.SIGFPE 59 SIGKILL = C.SIGKILL 60 SIGBUS = C.SIGBUS 61 SIGSEGV = C.SIGSEGV 62 SIGSYS = C.SIGSYS 63 SIGPIPE = C.SIGPIPE 64 SIGALRM = C.SIGALRM 65 SIGTERM = C.SIGTERM 66 SIGURG = C.SIGURG 67 SIGSTOP = C.SIGSTOP 68 SIGTSTP = C.SIGTSTP 69 SIGCONT = C.SIGCONT 70 SIGCHLD = C.SIGCHLD 71 SIGTTIN = C.SIGTTIN 72 SIGTTOU = C.SIGTTOU 73 SIGIO = C.SIGIO 74 SIGXCPU = C.SIGXCPU 75 SIGXFSZ = C.SIGXFSZ 76 SIGVTALRM = C.SIGVTALRM 77 SIGPROF = C.SIGPROF 78 SIGWINCH = C.SIGWINCH 79 SIGINFO = C.SIGINFO 80 SIGUSR1 = C.SIGUSR1 81 SIGUSR2 = C.SIGUSR2 82 83 FPE_INTDIV = C.FPE_INTDIV 84 FPE_INTOVF = C.FPE_INTOVF 85 FPE_FLTDIV = C.FPE_FLTDIV 86 FPE_FLTOVF = C.FPE_FLTOVF 87 FPE_FLTUND = C.FPE_FLTUND 88 FPE_FLTRES = C.FPE_FLTRES 89 FPE_FLTINV = C.FPE_FLTINV 90 FPE_FLTSUB = C.FPE_FLTSUB 91 92 BUS_ADRALN = C.BUS_ADRALN 93 BUS_ADRERR = C.BUS_ADRERR 94 BUS_OBJERR = C.BUS_OBJERR 95 96 SEGV_MAPERR = C.SEGV_MAPERR 97 SEGV_ACCERR = C.SEGV_ACCERR 98 99 ITIMER_REAL = C.ITIMER_REAL 100 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL 101 ITIMER_PROF = C.ITIMER_PROF 102 103 EV_ADD = C.EV_ADD 104 EV_DELETE = C.EV_DELETE 105 EV_CLEAR = C.EV_CLEAR 106 EV_RECEIPT = 0 107 EV_ERROR = C.EV_ERROR 108 EVFILT_READ = C.EVFILT_READ 109 EVFILT_WRITE = C.EVFILT_WRITE 110 ) 111 112 type SigaltstackT C.struct_sigaltstack 113 type Sigset C.sigset_t 114 type Siginfo C.struct__ksiginfo 115 116 type StackT C.stack_t 117 118 type Timespec C.struct_timespec 119 type Timeval C.struct_timeval 120 type Itimerval C.struct_itimerval 121 122 type McontextT C.mcontext_t 123 type UcontextT C.ucontext_t 124 125 type Kevent C.struct_kevent 126