blob: 87c6e02a41c7be5d969e7276ae62e0d226aaf3bd [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>
Shenghou Maab29d5b2014-08-12 19:50:30 -040018#include <asm/signal.h>
Russ Coxdd2abe52011-11-10 19:08:28 -050019*/
20import "C"
21
22const (
Shenghou Maab29d5b2014-08-12 19:50:30 -040023 O_RDONLY = C.O_RDONLY
24 O_CLOEXEC = C.O_CLOEXEC
25 SA_RESTORER = C.SA_RESTORER
Russ Coxdd2abe52011-11-10 19:08:28 -050026)
27
28type Usigset C.__sigset_t
29type Fpxreg C.struct__libc_fpxreg
30type Xmmreg C.struct__libc_xmmreg
31type Fpstate C.struct__libc_fpstate
32type Fpxreg1 C.struct__fpxreg
33type Xmmreg1 C.struct__xmmreg
34type Fpstate1 C.struct__fpstate
35type Fpreg1 C.struct__fpreg
Ian Lance Taylor0b9e4722014-08-29 16:11:05 -070036type SigaltstackT C.struct_sigaltstack
Russ Coxdd2abe52011-11-10 19:08:28 -050037type Mcontext C.mcontext_t
38type Ucontext C.ucontext_t
39type Sigcontext C.struct_sigcontext