github.com/comwrg/go/src@v0.0.0-20220319063731-c238d0440370/runtime/defs1_linux.go (about) 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 5 //go:build ignore 6 // +build ignore 7 8 /* 9 Input to cgo -cdefs 10 11 GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h 12 */ 13 14 package runtime 15 16 /* 17 #include <ucontext.h> 18 #include <fcntl.h> 19 #include <asm/signal.h> 20 */ 21 import "C" 22 23 const ( 24 O_RDONLY = C.O_RDONLY 25 O_NONBLOCK = C.O_NONBLOCK 26 O_CLOEXEC = C.O_CLOEXEC 27 SA_RESTORER = C.SA_RESTORER 28 ) 29 30 type Usigset C.__sigset_t 31 type Fpxreg C.struct__libc_fpxreg 32 type Xmmreg C.struct__libc_xmmreg 33 type Fpstate C.struct__libc_fpstate 34 type Fpxreg1 C.struct__fpxreg 35 type Xmmreg1 C.struct__xmmreg 36 type Fpstate1 C.struct__fpstate 37 type Fpreg1 C.struct__fpreg 38 type StackT C.stack_t 39 type Mcontext C.mcontext_t 40 type Ucontext C.ucontext_t 41 type Sigcontext C.struct_sigcontext