blob: 392cc4ab58e6aafaf51b09eaf68f7dbd4ae54c96 [file] [log] [blame]
Russ Coxdd2abe52011-11-10 19:08:28 -05001// 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 Cox55889402011-12-19 15:51:13 -05005// +build ignore
6
Russ Coxdd2abe52011-11-10 19:08:28 -05007/*
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*/
19import "C"
20
21const (
22 O_RDONLY = C.O_RDONLY
23 O_CLOEXEC = C.O_CLOEXEC
24)
25
26type Usigset C.__sigset_t
27type Fpxreg C.struct__libc_fpxreg
28type Xmmreg C.struct__libc_xmmreg
29type Fpstate C.struct__libc_fpstate
30type Fpxreg1 C.struct__fpxreg
31type Xmmreg1 C.struct__xmmreg
32type Fpstate1 C.struct__fpstate
33type Fpreg1 C.struct__fpreg
Ian Lance Taylor0b9e4722014-08-29 16:11:05 -070034type SigaltstackT C.struct_sigaltstack
Russ Coxdd2abe52011-11-10 19:08:28 -050035type Mcontext C.mcontext_t
36type Ucontext C.ucontext_t
37type Sigcontext C.struct_sigcontext