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.
10 GOARCH=amd64 go tool cgo -godefs defs_openbsd.go
11 GOARCH=386 go tool cgo -godefs defs_openbsd.go
12 GOARCH=arm go tool cgo -godefs defs_openbsd.go
13 GOARCH=arm64 go tool cgo -godefs defs_openbsd.go
14 GOARCH=mips64 go tool cgo -godefs defs_openbsd.go
20 #include <sys/types.h>
21 #include <sys/event.h>
24 #include <sys/unistd.h>
25 #include <sys/signal.h>
37 ETIMEDOUT = C.ETIMEDOUT
39 O_NONBLOCK = C.O_NONBLOCK
40 O_CLOEXEC = C.O_CLOEXEC
42 PROT_NONE = C.PROT_NONE
43 PROT_READ = C.PROT_READ
44 PROT_WRITE = C.PROT_WRITE
45 PROT_EXEC = C.PROT_EXEC
48 MAP_PRIVATE = C.MAP_PRIVATE
49 MAP_FIXED = C.MAP_FIXED
50 MAP_STACK = C.MAP_STACK
52 MADV_DONTNEED = C.MADV_DONTNEED
53 MADV_FREE = C.MADV_FREE
55 SA_SIGINFO = C.SA_SIGINFO
56 SA_RESTART = C.SA_RESTART
57 SA_ONSTACK = C.SA_ONSTACK
59 PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
86 SIGVTALRM = C.SIGVTALRM
93 FPE_INTDIV = C.FPE_INTDIV
94 FPE_INTOVF = C.FPE_INTOVF
95 FPE_FLTDIV = C.FPE_FLTDIV
96 FPE_FLTOVF = C.FPE_FLTOVF
97 FPE_FLTUND = C.FPE_FLTUND
98 FPE_FLTRES = C.FPE_FLTRES
99 FPE_FLTINV = C.FPE_FLTINV
100 FPE_FLTSUB = C.FPE_FLTSUB
102 BUS_ADRALN = C.BUS_ADRALN
103 BUS_ADRERR = C.BUS_ADRERR
104 BUS_OBJERR = C.BUS_OBJERR
106 SEGV_MAPERR = C.SEGV_MAPERR
107 SEGV_ACCERR = C.SEGV_ACCERR
109 ITIMER_REAL = C.ITIMER_REAL
110 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
111 ITIMER_PROF = C.ITIMER_PROF
114 EV_DELETE = C.EV_DELETE
115 EV_CLEAR = C.EV_CLEAR
116 EV_ERROR = C.EV_ERROR
118 EVFILT_READ = C.EVFILT_READ
119 EVFILT_WRITE = C.EVFILT_WRITE
122 type TforkT C.struct___tfork
124 type Sigcontext C.struct_sigcontext
125 type Siginfo C.siginfo_t
126 type Sigset C.sigset_t
127 type Sigval C.union_sigval
129 type StackT C.stack_t
131 type Timespec C.struct_timespec
132 type Timeval C.struct_timeval
133 type Itimerval C.struct_itimerval
135 type KeventT C.struct_kevent
137 type Pthread C.pthread_t
138 type PthreadAttr C.pthread_attr_t
139 type PthreadCond C.pthread_cond_t
140 type PthreadCondAttr C.pthread_condattr_t
141 type PthreadMutex C.pthread_mutex_t
142 type PthreadMutexAttr C.pthread_mutexattr_t