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

Delta Between Two Patch Sets: src/pkg/runtime/freebsd/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/darwin/defs.go ('k') | src/pkg/runtime/linux/386/defs.h » ('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/time.h> 16 #include <sys/time.h>
17 #include <signal.h> 17 #include <signal.h>
18 #include <errno.h> 18 #include <errno.h>
19 #include <sys/mman.h> 19 #include <sys/mman.h>
20 #include <sys/ucontext.h> 20 #include <sys/ucontext.h>
21 #include <sys/umtx.h> 21 #include <sys/umtx.h>
22 #include <sys/rtprio.h> 22 #include <sys/rtprio.h>
23 #include <sys/thr.h> 23 #include <sys/thr.h>
24 #include <sys/_sigset.h> 24 #include <sys/_sigset.h>
25 #include <sys/unistd.h> 25 #include <sys/unistd.h>
26 */ 26 */
27 import "C" 27 import "C"
28 28
29 const ( 29 const (
30 » PROT_NONE = C.PROT_NONE 30 » PROT_NONE = C.PROT_NONE
31 » PROT_READ = C.PROT_READ 31 » PROT_READ = C.PROT_READ
32 PROT_WRITE = C.PROT_WRITE 32 PROT_WRITE = C.PROT_WRITE
33 » PROT_EXEC = C.PROT_EXEC 33 » PROT_EXEC = C.PROT_EXEC
34 34
35 » MAP_ANON = C.MAP_ANON 35 » MAP_ANON = C.MAP_ANON
36 MAP_PRIVATE = C.MAP_PRIVATE 36 MAP_PRIVATE = C.MAP_PRIVATE
37 » MAP_FIXED = C.MAP_FIXED 37 » MAP_FIXED = C.MAP_FIXED
38 38
39 SA_SIGINFO = C.SA_SIGINFO 39 SA_SIGINFO = C.SA_SIGINFO
40 SA_RESTART = C.SA_RESTART 40 SA_RESTART = C.SA_RESTART
41 SA_ONSTACK = C.SA_ONSTACK 41 SA_ONSTACK = C.SA_ONSTACK
42 42
43 UMTX_OP_WAIT = C.UMTX_OP_WAIT 43 UMTX_OP_WAIT = C.UMTX_OP_WAIT
44 UMTX_OP_WAKE = C.UMTX_OP_WAKE 44 UMTX_OP_WAKE = C.UMTX_OP_WAKE
45 45
46 EINTR = C.EINTR 46 EINTR = C.EINTR
47 » 47
48 » SIGHUP = C.SIGHUP 48 » SIGHUP = C.SIGHUP
49 » SIGINT = C.SIGINT 49 » SIGINT = C.SIGINT
50 » SIGQUIT = C.SIGQUIT 50 » SIGQUIT = C.SIGQUIT
51 » SIGILL = C.SIGILL 51 » SIGILL = C.SIGILL
52 » SIGTRAP = C.SIGTRAP 52 » SIGTRAP = C.SIGTRAP
53 » SIGABRT = C.SIGABRT 53 » SIGABRT = C.SIGABRT
54 » SIGEMT = C.SIGEMT 54 » SIGEMT = C.SIGEMT
55 » SIGFPE = C.SIGFPE 55 » SIGFPE = C.SIGFPE
56 » SIGKILL = C.SIGKILL 56 » SIGKILL = C.SIGKILL
57 » SIGBUS = C.SIGBUS 57 » SIGBUS = C.SIGBUS
58 » SIGSEGV = C.SIGSEGV 58 » SIGSEGV = C.SIGSEGV
59 » SIGSYS = C.SIGSYS 59 » SIGSYS = C.SIGSYS
60 » SIGPIPE = C.SIGPIPE 60 » SIGPIPE = C.SIGPIPE
61 » SIGALRM = C.SIGALRM 61 » SIGALRM = C.SIGALRM
62 » SIGTERM = C.SIGTERM 62 » SIGTERM = C.SIGTERM
63 » SIGURG = C.SIGURG 63 » SIGURG = C.SIGURG
64 » SIGSTOP = C.SIGSTOP 64 » SIGSTOP = C.SIGSTOP
65 » SIGTSTP = C.SIGTSTP 65 » SIGTSTP = C.SIGTSTP
66 » SIGCONT = C.SIGCONT 66 » SIGCONT = C.SIGCONT
67 » SIGCHLD = C.SIGCHLD 67 » SIGCHLD = C.SIGCHLD
68 » SIGTTIN = C.SIGTTIN 68 » SIGTTIN = C.SIGTTIN
69 » SIGTTOU = C.SIGTTOU 69 » SIGTTOU = C.SIGTTOU
70 » SIGIO = C.SIGIO 70 » SIGIO = C.SIGIO
71 » SIGXCPU = C.SIGXCPU 71 » SIGXCPU = C.SIGXCPU
72 » SIGXFSZ = C.SIGXFSZ 72 » SIGXFSZ = C.SIGXFSZ
73 SIGVTALRM = C.SIGVTALRM 73 SIGVTALRM = C.SIGVTALRM
74 » SIGPROF = C.SIGPROF 74 » SIGPROF = C.SIGPROF
75 » SIGWINCH = C.SIGWINCH 75 » SIGWINCH = C.SIGWINCH
76 » SIGINFO = C.SIGINFO 76 » SIGINFO = C.SIGINFO
77 » SIGUSR1 = C.SIGUSR1 77 » SIGUSR1 = C.SIGUSR1
78 » SIGUSR2 = C.SIGUSR2 78 » SIGUSR2 = C.SIGUSR2
79 » 79
80 FPE_INTDIV = C.FPE_INTDIV 80 FPE_INTDIV = C.FPE_INTDIV
81 FPE_INTOVF = C.FPE_INTOVF 81 FPE_INTOVF = C.FPE_INTOVF
82 FPE_FLTDIV = C.FPE_FLTDIV 82 FPE_FLTDIV = C.FPE_FLTDIV
83 FPE_FLTOVF = C.FPE_FLTOVF 83 FPE_FLTOVF = C.FPE_FLTOVF
84 FPE_FLTUND = C.FPE_FLTUND 84 FPE_FLTUND = C.FPE_FLTUND
85 FPE_FLTRES = C.FPE_FLTRES 85 FPE_FLTRES = C.FPE_FLTRES
86 FPE_FLTINV = C.FPE_FLTINV 86 FPE_FLTINV = C.FPE_FLTINV
87 FPE_FLTSUB = C.FPE_FLTSUB 87 FPE_FLTSUB = C.FPE_FLTSUB
88 » 88
89 BUS_ADRALN = C.BUS_ADRALN 89 BUS_ADRALN = C.BUS_ADRALN
90 BUS_ADRERR = C.BUS_ADRERR 90 BUS_ADRERR = C.BUS_ADRERR
91 BUS_OBJERR = C.BUS_OBJERR 91 BUS_OBJERR = C.BUS_OBJERR
92 » 92
93 SEGV_MAPERR = C.SEGV_MAPERR 93 SEGV_MAPERR = C.SEGV_MAPERR
94 SEGV_ACCERR = C.SEGV_ACCERR 94 SEGV_ACCERR = C.SEGV_ACCERR
95 » 95
96 » ITIMER_REAL = C.ITIMER_REAL 96 » ITIMER_REAL = C.ITIMER_REAL
97 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL 97 ITIMER_VIRTUAL = C.ITIMER_VIRTUAL
98 » ITIMER_PROF = C.ITIMER_PROF 98 » ITIMER_PROF = C.ITIMER_PROF
99 ) 99 )
100 100
101 type Rtprio C.struct_rtprio 101 type Rtprio C.struct_rtprio
102 type ThrParam C.struct_thr_param 102 type ThrParam C.struct_thr_param
103 type Sigaltstack C.struct_sigaltstack 103 type Sigaltstack C.struct_sigaltstack
104 type Sigset C.struct___sigset 104 type Sigset C.struct___sigset
105 type Sigval C.union_sigval 105 type Sigval C.union_sigval
106 type StackT C.stack_t 106 type StackT C.stack_t
107 107
108 type Siginfo C.siginfo_t 108 type Siginfo C.siginfo_t
109 109
110 type Mcontext C.mcontext_t 110 type Mcontext C.mcontext_t
111 type Ucontext C.ucontext_t 111 type Ucontext C.ucontext_t
112 112
113 type Timespec C.struct_timespec 113 type Timespec C.struct_timespec
114 type Timeval C.struct_timeval 114 type Timeval C.struct_timeval
115 type Itimerval C.struct_itimerval 115 type Itimerval C.struct_itimerval
LEFTRIGHT

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