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 -cdefs defs_solaris.go >defs_solaris_amd64.h
16 #include <sys/types.h>
18 #include <sys/select.h>
19 #include <sys/siginfo.h>
20 #include <sys/signal.h>
23 #include <sys/ucontext.h>
24 #include <sys/regset.h>
25 #include <sys/unistd.h>
28 #include <semaphore.h>
43 ETIMEDOUT = C.ETIMEDOUT
44 EWOULDBLOCK = C.EWOULDBLOCK
45 EINPROGRESS = C.EINPROGRESS
47 PROT_NONE = C.PROT_NONE
48 PROT_READ = C.PROT_READ
49 PROT_WRITE = C.PROT_WRITE
50 PROT_EXEC = C.PROT_EXEC
53 MAP_PRIVATE = C.MAP_PRIVATE
54 MAP_FIXED = C.MAP_FIXED
56 MADV_DONTNEED = C.MADV_DONTNEED
57 MADV_FREE = C.MADV_FREE
59 SA_SIGINFO = C.SA_SIGINFO
60 SA_RESTART = C.SA_RESTART
61 SA_ONSTACK = C.SA_ONSTACK
88 SIGVTALRM = C.SIGVTALRM
94 FPE_INTDIV = C.FPE_INTDIV
95 FPE_INTOVF = C.FPE_INTOVF
96 FPE_FLTDIV = C.FPE_FLTDIV
97 FPE_FLTOVF = C.FPE_FLTOVF
98 FPE_FLTUND = C.FPE_FLTUND
99 FPE_FLTRES = C.FPE_FLTRES
100 FPE_FLTINV = C.FPE_FLTINV
101 FPE_FLTSUB = C.FPE_FLTSUB
103 BUS_ADRALN = C.BUS_ADRALN
104 BUS_ADRERR = C.BUS_ADRERR
105 BUS_OBJERR = C.BUS_OBJERR
107 SEGV_MAPERR = C.SEGV_MAPERR
108 SEGV_ACCERR = C.SEGV_ACCERR
110 ITIMER_REAL = C.ITIMER_REAL
111 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
112 ITIMER_PROF = C.ITIMER_PROF
114 _SC_NPROCESSORS_ONLN = C._SC_NPROCESSORS_ONLN
116 PTHREAD_CREATE_DETACHED = C.PTHREAD_CREATE_DETACHED
118 FORK_NOSIGCHLD = C.FORK_NOSIGCHLD
119 FORK_WAITPID = C.FORK_WAITPID
121 MAXHOSTNAMELEN = C.MAXHOSTNAMELEN
123 O_WRONLY = C.O_WRONLY
124 O_NONBLOCK = C.O_NONBLOCK
127 O_CLOEXEC = C.O_CLOEXEC
134 PORT_SOURCE_FD = C.PORT_SOURCE_FD
135 PORT_SOURCE_ALERT = C.PORT_SOURCE_ALERT
136 PORT_ALERT_UPDATE = C.PORT_ALERT_UPDATE
141 type Sigset C.sigset_t
142 type StackT C.stack_t
144 type Siginfo C.siginfo_t
145 type Sigaction C.struct_sigaction
147 type Fpregset C.fpregset_t
148 type Mcontext C.mcontext_t
149 type Ucontext C.ucontext_t
151 type Timespec C.struct_timespec
152 type Timeval C.struct_timeval
153 type Itimerval C.struct_itimerval
155 type PortEvent C.port_event_t
156 type Pthread C.pthread_t
157 type PthreadAttr C.pthread_attr_t
159 // depends on Timespec, must appear below
160 type Stat C.struct_stat