LEFT | RIGHT |
1 // Copyright 2009 The Go Authors. All rights reserved. | 1 // Copyright 2009 The Go Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style | 2 // Use of this source code is governed by a BSD-style |
3 // license that can be found in the LICENSE file. | 3 // license that can be found in the LICENSE file. |
4 | 4 |
5 /* | 5 /* |
6 Input to cgo -cdefs | 6 Input to cgo -cdefs |
7 | 7 |
8 GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h | 8 GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h |
9 */ | 9 */ |
10 | 10 |
11 package runtime | 11 package runtime |
12 | 12 |
13 /* | 13 /* |
14 #include <ucontext.h> | 14 #include <ucontext.h> |
15 #include <fcntl.h> | 15 #include <fcntl.h> |
16 */ | 16 */ |
17 import "C" | 17 import "C" |
18 | 18 |
19 const ( | 19 const ( |
20 » O_RDONLY = C.O_RDONLY | 20 » O_RDONLY = C.O_RDONLY |
21 O_CLOEXEC = C.O_CLOEXEC | 21 O_CLOEXEC = C.O_CLOEXEC |
22 ) | 22 ) |
23 » | 23 |
24 type Usigset C.__sigset_t | 24 type Usigset C.__sigset_t |
25 type Fpxreg C.struct__libc_fpxreg | 25 type Fpxreg C.struct__libc_fpxreg |
26 type Xmmreg C.struct__libc_xmmreg | 26 type Xmmreg C.struct__libc_xmmreg |
27 type Fpstate C.struct__libc_fpstate | 27 type Fpstate C.struct__libc_fpstate |
28 type Fpxreg1 C.struct__fpxreg | 28 type Fpxreg1 C.struct__fpxreg |
29 type Xmmreg1 C.struct__xmmreg | 29 type Xmmreg1 C.struct__xmmreg |
30 type Fpstate1 C.struct__fpstate | 30 type Fpstate1 C.struct__fpstate |
31 type Fpreg1 C.struct__fpreg | 31 type Fpreg1 C.struct__fpreg |
32 type Sigaltstack C.struct_sigaltstack | 32 type Sigaltstack C.struct_sigaltstack |
33 type Mcontext C.mcontext_t | 33 type Mcontext C.mcontext_t |
34 type Ucontext C.ucontext_t | 34 type Ucontext C.ucontext_t |
35 type Sigcontext C.struct_sigcontext | 35 type Sigcontext C.struct_sigcontext |
36 | |
LEFT | RIGHT |