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