~ubuntu-branches/ubuntu/saucy/golang/saucy

« back to all changes in this revision

Viewing changes to src/pkg/runtime/defs_darwin_386.h

  • Committer: Package Import Robot
  • Author(s): Adam Conrad
  • Date: 2013-07-08 05:52:37 UTC
  • mfrom: (29.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130708055237-at01839e0hp8z3ni
Tags: 2:1.1-1ubuntu1
016-armhf-elf-header.patch: Use correct ELF header for armhf binaries.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
 
4
4
 
5
5
enum {
 
6
        EINTR   = 0x4,
 
7
        EFAULT  = 0xe,
 
8
 
6
9
        PROT_NONE       = 0x0,
7
10
        PROT_READ       = 0x1,
8
11
        PROT_WRITE      = 0x2,
106
109
        ITIMER_REAL     = 0x0,
107
110
        ITIMER_VIRTUAL  = 0x1,
108
111
        ITIMER_PROF     = 0x2,
 
112
 
 
113
        EV_ADD          = 0x1,
 
114
        EV_DELETE       = 0x2,
 
115
        EV_CLEAR        = 0x20,
 
116
        EV_RECEIPT      = 0x40,
 
117
        EV_ERROR        = 0x4000,
 
118
        EVFILT_READ     = -0x1,
 
119
        EVFILT_WRITE    = -0x2,
109
120
};
110
121
 
111
122
typedef struct MachBody MachBody;
117
128
typedef struct Siginfo Siginfo;
118
129
typedef struct Timeval Timeval;
119
130
typedef struct Itimerval Itimerval;
 
131
typedef struct Timespec Timespec;
120
132
typedef struct FPControl FPControl;
121
133
typedef struct FPStatus FPStatus;
122
134
typedef struct RegMMST RegMMST;
130
142
typedef struct ExceptionState32 ExceptionState32;
131
143
typedef struct Mcontext32 Mcontext32;
132
144
typedef struct Ucontext Ucontext;
 
145
typedef struct Kevent Kevent;
133
146
 
134
147
#pragma pack on
135
148
 
170
183
typedef byte    Sighandler[4];
171
184
 
172
185
struct Sigaction {
173
 
        Sighandler      __sigaction_u;
 
186
        byte    __sigaction_u[4];
174
187
        void    *sa_tramp;
175
188
        uint32  sa_mask;
176
189
        int32   sa_flags;
185
198
        uint32  si_uid;
186
199
        int32   si_status;
187
200
        byte    *si_addr;
188
 
        Sigval  si_value;
 
201
        byte    si_value[4];
189
202
        int32   si_band;
190
203
        uint32  __pad[7];
191
204
};
197
210
        Timeval it_interval;
198
211
        Timeval it_value;
199
212
};
 
213
struct Timespec {
 
214
        int32   tv_sec;
 
215
        int32   tv_nsec;
 
216
};
200
217
 
201
218
struct FPControl {
202
219
        byte    Pad_cgo_0[2];
362
379
        Mcontext32      *uc_mcontext;
363
380
};
364
381
 
 
382
struct Kevent {
 
383
        uint32  ident;
 
384
        int16   filter;
 
385
        uint16  flags;
 
386
        uint32  fflags;
 
387
        int32   data;
 
388
        byte    *udata;
 
389
};
 
390
 
365
391
 
366
392
#pragma pack off