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