Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1662)

Delta Between Two Patch Sets: src/pkg/runtime/linux/defs1.go

Issue 5348052: code review 5348052: runtime, syscall: convert from godefs to cgo (Closed)
Left Patch Set: diff -r daa8c6dc4c42 https://go.googlecode.com/hg/ Created 13 years, 4 months ago
Right Patch Set: diff -r 700ff7ef684f https://go.googlecode.com/hg Created 13 years, 4 months ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
« no previous file with change/comment | « src/pkg/runtime/linux/defs.go ('k') | src/pkg/runtime/linux/defs2.go » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 // Copyright 2009 The Go Authors. All rights reserved. 1 // Copyright 2009 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style 2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file. 3 // license that can be found in the LICENSE file.
4 4
5 /* 5 /*
6 Input to cgo -cdefs 6 Input to cgo -cdefs
7 7
8 GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h 8 GOARCH=amd64 cgo -cdefs defs.go defs1.go >amd64/defs.h
9 */ 9 */
10 10
11 package runtime 11 package runtime
12 12
13 /* 13 /*
14 #include <ucontext.h> 14 #include <ucontext.h>
15 #include <fcntl.h> 15 #include <fcntl.h>
16 */ 16 */
17 import "C" 17 import "C"
18 18
19 const ( 19 const (
20 » O_RDONLY = C.O_RDONLY 20 » O_RDONLY = C.O_RDONLY
21 O_CLOEXEC = C.O_CLOEXEC 21 O_CLOEXEC = C.O_CLOEXEC
22 ) 22 )
23 » 23
24 type Usigset C.__sigset_t 24 type Usigset C.__sigset_t
25 type Fpxreg C.struct__libc_fpxreg 25 type Fpxreg C.struct__libc_fpxreg
26 type Xmmreg C.struct__libc_xmmreg 26 type Xmmreg C.struct__libc_xmmreg
27 type Fpstate C.struct__libc_fpstate 27 type Fpstate C.struct__libc_fpstate
28 type Fpxreg1 C.struct__fpxreg 28 type Fpxreg1 C.struct__fpxreg
29 type Xmmreg1 C.struct__xmmreg 29 type Xmmreg1 C.struct__xmmreg
30 type Fpstate1 C.struct__fpstate 30 type Fpstate1 C.struct__fpstate
31 type Fpreg1 C.struct__fpreg 31 type Fpreg1 C.struct__fpreg
32 type Sigaltstack C.struct_sigaltstack 32 type Sigaltstack C.struct_sigaltstack
33 type Mcontext C.mcontext_t 33 type Mcontext C.mcontext_t
34 type Ucontext C.ucontext_t 34 type Ucontext C.ucontext_t
35 type Sigcontext C.struct_sigcontext 35 type Sigcontext C.struct_sigcontext
36
LEFTRIGHT

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b