Russ Cox | dd2abe5 | 2011-11-10 19:08:28 -0500 | [diff] [blame] | 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. |
| 4 | |
Russ Cox | 5588940 | 2011-12-19 15:51:13 -0500 | [diff] [blame] | 5 | // +build ignore |
| 6 | |
Russ Cox | dd2abe5 | 2011-11-10 19:08:28 -0500 | [diff] [blame] | 7 | /* |
| 8 | Input to cgo -cdefs |
| 9 | |
| 10 | GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h |
| 11 | */ |
| 12 | |
| 13 | package runtime |
| 14 | |
| 15 | /* |
| 16 | #include <ucontext.h> |
| 17 | #include <fcntl.h> |
Shenghou Ma | ab29d5b | 2014-08-12 19:50:30 -0400 | [diff] [blame] | 18 | #include <asm/signal.h> |
Russ Cox | dd2abe5 | 2011-11-10 19:08:28 -0500 | [diff] [blame] | 19 | */ |
| 20 | import "C" |
| 21 | |
| 22 | const ( |
Shenghou Ma | ab29d5b | 2014-08-12 19:50:30 -0400 | [diff] [blame] | 23 | O_RDONLY = C.O_RDONLY |
| 24 | O_CLOEXEC = C.O_CLOEXEC |
| 25 | SA_RESTORER = C.SA_RESTORER |
Russ Cox | dd2abe5 | 2011-11-10 19:08:28 -0500 | [diff] [blame] | 26 | ) |
| 27 | |
| 28 | type Usigset C.__sigset_t |
| 29 | type Fpxreg C.struct__libc_fpxreg |
| 30 | type Xmmreg C.struct__libc_xmmreg |
| 31 | type Fpstate C.struct__libc_fpstate |
| 32 | type Fpxreg1 C.struct__fpxreg |
| 33 | type Xmmreg1 C.struct__xmmreg |
| 34 | type Fpstate1 C.struct__fpstate |
| 35 | type Fpreg1 C.struct__fpreg |
Ian Lance Taylor | 0b9e472 | 2014-08-29 16:11:05 -0700 | [diff] [blame] | 36 | type SigaltstackT C.struct_sigaltstack |
Russ Cox | dd2abe5 | 2011-11-10 19:08:28 -0500 | [diff] [blame] | 37 | type Mcontext C.mcontext_t |
| 38 | type Ucontext C.ucontext_t |
| 39 | type Sigcontext C.struct_sigcontext |