~ubuntu-branches/ubuntu/vivid/golang/vivid

« back to all changes in this revision

Viewing changes to src/pkg/runtime/defs_darwin.go

  • Committer: Package Import Robot
  • Author(s): James Page
  • Date: 2013-08-20 14:06:23 UTC
  • mfrom: (14.1.23 saucy-proposed)
  • Revision ID: package-import@ubuntu.com-20130820140623-b414jfxi3m0qkmrq
Tags: 2:1.1.2-2ubuntu1
* Merge from Debian unstable (LP: #1211749, #1202027). Remaining changes:
  - 016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.
  - d/control,control.cross: Update Breaks/Replaces for Ubuntu
    versions to ensure smooth upgrades, regenerate control file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
/*
8
8
Input to cgo.
9
9
 
10
 
GOARCH=amd64 cgo -cdefs defs_darwin.go >defs_darwin_amd64.h
11
 
GOARCH=386 cgo -cdefs defs_darwin.go >defs_darwin_386.h
 
10
GOARCH=amd64 go tool cgo -cdefs defs_darwin.go >defs_darwin_amd64.h
 
11
GOARCH=386 go tool cgo -cdefs defs_darwin.go >defs_darwin_386.h
12
12
*/
13
13
 
14
14
package runtime
19
19
#include <mach/message.h>
20
20
#include <sys/types.h>
21
21
#include <sys/time.h>
 
22
#include <errno.h>
22
23
#include <signal.h>
 
24
#include <sys/event.h>
23
25
#include <sys/mman.h>
24
26
*/
25
27
import "C"
26
28
 
27
29
const (
 
30
        EINTR  = C.EINTR
 
31
        EFAULT = C.EFAULT
 
32
 
28
33
        PROT_NONE  = C.PROT_NONE
29
34
        PROT_READ  = C.PROT_READ
30
35
        PROT_WRITE = C.PROT_WRITE
128
133
        ITIMER_REAL    = C.ITIMER_REAL
129
134
        ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
130
135
        ITIMER_PROF    = C.ITIMER_PROF
 
136
 
 
137
        EV_ADD       = C.EV_ADD
 
138
        EV_DELETE    = C.EV_DELETE
 
139
        EV_CLEAR     = C.EV_CLEAR
 
140
        EV_RECEIPT   = C.EV_RECEIPT
 
141
        EV_ERROR     = C.EV_ERROR
 
142
        EVFILT_READ  = C.EVFILT_READ
 
143
        EVFILT_WRITE = C.EVFILT_WRITE
131
144
)
132
145
 
133
146
type MachBody C.mach_msg_body_t
144
157
type Siginfo C.siginfo_t
145
158
type Timeval C.struct_timeval
146
159
type Itimerval C.struct_itimerval
 
160
type Timespec C.struct_timespec
147
161
 
148
162
type FPControl C.struct_fp_control
149
163
type FPStatus C.struct_fp_status
161
175
type Mcontext32 C.struct_mcontext32
162
176
 
163
177
type Ucontext C.struct_ucontext
 
178
 
 
179
type Kevent C.struct_kevent