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

Delta Between Two Patch Sets: src/pkg/runtime/openbsd/defs.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_arm.go ('k') | src/pkg/runtime/windows/defs.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. 6 Input to cgo.
7 7
8 GOARCH=amd64 cgo -cdefs defs.go >amd64/defs.h 8 GOARCH=amd64 cgo -cdefs defs.go >amd64/defs.h
9 GOARCH=386 cgo -cdefs defs.go >386/defs.h 9 GOARCH=386 cgo -cdefs defs.go >386/defs.h
10 */ 10 */
11 11
12 package runtime 12 package runtime
13 13
14 /* 14 /*
15 #include <sys/types.h> 15 #include <sys/types.h>
16 #include <sys/mman.h> 16 #include <sys/mman.h>
17 #include <sys/time.h> 17 #include <sys/time.h>
18 #include <sys/unistd.h> 18 #include <sys/unistd.h>
19 #include <sys/signal.h> 19 #include <sys/signal.h>
20 #include <errno.h> 20 #include <errno.h>
21 #include <signal.h> 21 #include <signal.h>
22 */ 22 */
23 import "C" 23 import "C"
24 24
25 const ( 25 const (
26 » PROT_NONE = C.PROT_NONE 26 » PROT_NONE = C.PROT_NONE
27 » PROT_READ = C.PROT_READ 27 » PROT_READ = C.PROT_READ
28 PROT_WRITE = C.PROT_WRITE 28 PROT_WRITE = C.PROT_WRITE
29 » PROT_EXEC = C.PROT_EXEC 29 » PROT_EXEC = C.PROT_EXEC
30 30
31 » MAP_ANON = C.MAP_ANON 31 » MAP_ANON = C.MAP_ANON
32 MAP_PRIVATE = C.MAP_PRIVATE 32 MAP_PRIVATE = C.MAP_PRIVATE
33 » MAP_FIXED = C.MAP_FIXED 33 » MAP_FIXED = C.MAP_FIXED
34 34
35 SA_SIGINFO = C.SA_SIGINFO 35 SA_SIGINFO = C.SA_SIGINFO
36 SA_RESTART = C.SA_RESTART 36 SA_RESTART = C.SA_RESTART
37 SA_ONSTACK = C.SA_ONSTACK 37 SA_ONSTACK = C.SA_ONSTACK
38 38
39 EINTR = C.EINTR 39 EINTR = C.EINTR
40 » 40
41 » SIGHUP = C.SIGHUP 41 » SIGHUP = C.SIGHUP
42 » SIGINT = C.SIGINT 42 » SIGINT = C.SIGINT
43 » SIGQUIT = C.SIGQUIT 43 » SIGQUIT = C.SIGQUIT
44 » SIGILL = C.SIGILL 44 » SIGILL = C.SIGILL
45 » SIGTRAP = C.SIGTRAP 45 » SIGTRAP = C.SIGTRAP
46 » SIGABRT = C.SIGABRT 46 » SIGABRT = C.SIGABRT
47 » SIGEMT = C.SIGEMT 47 » SIGEMT = C.SIGEMT
48 » SIGFPE = C.SIGFPE 48 » SIGFPE = C.SIGFPE
49 » SIGKILL = C.SIGKILL 49 » SIGKILL = C.SIGKILL
50 » SIGBUS = C.SIGBUS 50 » SIGBUS = C.SIGBUS
51 » SIGSEGV = C.SIGSEGV 51 » SIGSEGV = C.SIGSEGV
52 » SIGSYS = C.SIGSYS 52 » SIGSYS = C.SIGSYS
53 » SIGPIPE = C.SIGPIPE 53 » SIGPIPE = C.SIGPIPE
54 » SIGALRM = C.SIGALRM 54 » SIGALRM = C.SIGALRM
55 » SIGTERM = C.SIGTERM 55 » SIGTERM = C.SIGTERM
56 » SIGURG = C.SIGURG 56 » SIGURG = C.SIGURG
57 » SIGSTOP = C.SIGSTOP 57 » SIGSTOP = C.SIGSTOP
58 » SIGTSTP = C.SIGTSTP 58 » SIGTSTP = C.SIGTSTP
59 » SIGCONT = C.SIGCONT 59 » SIGCONT = C.SIGCONT
60 » SIGCHLD = C.SIGCHLD 60 » SIGCHLD = C.SIGCHLD
61 » SIGTTIN = C.SIGTTIN 61 » SIGTTIN = C.SIGTTIN
62 » SIGTTOU = C.SIGTTOU 62 » SIGTTOU = C.SIGTTOU
63 » SIGIO = C.SIGIO 63 » SIGIO = C.SIGIO
64 » SIGXCPU = C.SIGXCPU 64 » SIGXCPU = C.SIGXCPU
65 » SIGXFSZ = C.SIGXFSZ 65 » SIGXFSZ = C.SIGXFSZ
66 SIGVTALRM = C.SIGVTALRM 66 SIGVTALRM = C.SIGVTALRM
67 » SIGPROF = C.SIGPROF 67 » SIGPROF = C.SIGPROF
68 » SIGWINCH = C.SIGWINCH 68 » SIGWINCH = C.SIGWINCH
69 » SIGINFO = C.SIGINFO 69 » SIGINFO = C.SIGINFO
70 » SIGUSR1 = C.SIGUSR1 70 » SIGUSR1 = C.SIGUSR1
71 » SIGUSR2 = C.SIGUSR2 71 » SIGUSR2 = C.SIGUSR2
72 » 72
73 FPE_INTDIV = C.FPE_INTDIV 73 FPE_INTDIV = C.FPE_INTDIV
74 FPE_INTOVF = C.FPE_INTOVF 74 FPE_INTOVF = C.FPE_INTOVF
75 FPE_FLTDIV = C.FPE_FLTDIV 75 FPE_FLTDIV = C.FPE_FLTDIV
76 FPE_FLTOVF = C.FPE_FLTOVF 76 FPE_FLTOVF = C.FPE_FLTOVF
77 FPE_FLTUND = C.FPE_FLTUND 77 FPE_FLTUND = C.FPE_FLTUND
78 FPE_FLTRES = C.FPE_FLTRES 78 FPE_FLTRES = C.FPE_FLTRES
79 FPE_FLTINV = C.FPE_FLTINV 79 FPE_FLTINV = C.FPE_FLTINV
80 FPE_FLTSUB = C.FPE_FLTSUB 80 FPE_FLTSUB = C.FPE_FLTSUB
81 » 81
82 BUS_ADRALN = C.BUS_ADRALN 82 BUS_ADRALN = C.BUS_ADRALN
83 BUS_ADRERR = C.BUS_ADRERR 83 BUS_ADRERR = C.BUS_ADRERR
84 BUS_OBJERR = C.BUS_OBJERR 84 BUS_OBJERR = C.BUS_OBJERR
85 » 85
86 SEGV_MAPERR = C.SEGV_MAPERR 86 SEGV_MAPERR = C.SEGV_MAPERR
87 SEGV_ACCERR = C.SEGV_ACCERR 87 SEGV_ACCERR = C.SEGV_ACCERR
88 » 88
89 » ITIMER_REAL = C.ITIMER_REAL 89 » ITIMER_REAL = C.ITIMER_REAL
90 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL 90 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
91 » ITIMER_PROF = C.ITIMER_PROF 91 » ITIMER_PROF = C.ITIMER_PROF
92 ) 92 )
93 93
94 type Sigaltstack C.struct_sigaltstack 94 type Sigaltstack C.struct_sigaltstack
95 type Sigset C.sigset_t 95 type Sigset C.sigset_t
96 type Siginfo C.siginfo_t 96 type Siginfo C.siginfo_t
97 type Sigval C.union_sigval 97 type Sigval C.union_sigval
98 98
99 type StackT C.stack_t 99 type StackT C.stack_t
100 100
101 type Timespec C.struct_timespec 101 type Timespec C.struct_timespec
102 type Timeval C.struct_timeval 102 type Timeval C.struct_timeval
103 type Itimerval C.struct_itimerval 103 type Itimerval C.struct_itimerval
104 104
105 // This is a hack to avoid pulling in machine/fpu.h. 105 // This is a hack to avoid pulling in machine/fpu.h.
106 type sfxsave64 struct{} 106 type sfxsave64 struct{}
107 type usavefpu struct{} 107 type usavefpu struct{}
108 108
109 type Sigcontext C.struct_sigcontext 109 type Sigcontext C.struct_sigcontext
LEFTRIGHT

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