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

Side by Side Diff: src/pkg/syscall/ztypes_openbsd_amd64.go

Issue 13368046: code review 13368046: runtime, syscall: update for openbsd system ABI break (Closed)
Patch Set: diff -r 21fb28e644a1 https://go.googlecode.com/hg/ Created 10 years, 2 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:
View unified diff | Download patch
« no previous file with comments | « src/pkg/syscall/ztypes_openbsd_386.go ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Created by cgo -godefs - DO NOT EDIT 1 // Created by cgo -godefs - DO NOT EDIT
2 // cgo -godefs types_openbsd.go 2 // cgo -godefs types_openbsd.go
3 3
4 package syscall 4 package syscall
5 5
6 const ( 6 const (
7 sizeofPtr = 0x8 7 sizeofPtr = 0x8
8 sizeofShort = 0x2 8 sizeofShort = 0x2
9 sizeofInt = 0x4 9 sizeofInt = 0x4
10 sizeofLong = 0x8 10 sizeofLong = 0x8
11 sizeofLongLong = 0x8 11 sizeofLongLong = 0x8
12 ) 12 )
13 13
14 type ( 14 type (
15 _C_short int16 15 _C_short int16
16 _C_int int32 16 _C_int int32
17 _C_long int64 17 _C_long int64
18 _C_long_long int64 18 _C_long_long int64
19 ) 19 )
20 20
21 type Timespec struct { 21 type Timespec struct {
22 » Sec int32 22 » Sec int64
23 » Pad_cgo_0 [4]byte 23 » Nsec int64
24 » Nsec int64
25 } 24 }
26 25
27 type Timeval struct { 26 type Timeval struct {
28 Sec int64 27 Sec int64
29 Usec int64 28 Usec int64
30 } 29 }
31 30
32 type Rusage struct { 31 type Rusage struct {
33 Utime Timeval 32 Utime Timeval
34 Stime Timeval 33 Stime Timeval
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 S_IFSOCK = 0xc000 65 S_IFSOCK = 0xc000
67 S_ISUID = 0x800 66 S_ISUID = 0x800
68 S_ISGID = 0x400 67 S_ISGID = 0x400
69 S_ISVTX = 0x200 68 S_ISVTX = 0x200
70 S_IRUSR = 0x100 69 S_IRUSR = 0x100
71 S_IWUSR = 0x80 70 S_IWUSR = 0x80
72 S_IXUSR = 0x40 71 S_IXUSR = 0x40
73 ) 72 )
74 73
75 type Stat_t struct { 74 type Stat_t struct {
75 Mode uint32
76 Dev int32 76 Dev int32
77 » Ino uint32 77 » Ino uint64
78 » Mode uint32
79 Nlink uint32 78 Nlink uint32
80 Uid uint32 79 Uid uint32
81 Gid uint32 80 Gid uint32
82 Rdev int32 81 Rdev int32
83 Lspare0 int32
84 Atim Timespec 82 Atim Timespec
85 Mtim Timespec 83 Mtim Timespec
86 Ctim Timespec 84 Ctim Timespec
87 Size int64 85 Size int64
88 Blocks int64 86 Blocks int64
89 Blksize uint32 87 Blksize uint32
90 Flags uint32 88 Flags uint32
91 Gen uint32 89 Gen uint32
92 » Lspare1 int32 90 » Pad_cgo_0 [4]byte
93 X__st_birthtim Timespec 91 X__st_birthtim Timespec
94 Qspare [2]int64
95 } 92 }
96 93
97 type Statfs_t struct { 94 type Statfs_t struct {
98 F_flags uint32 95 F_flags uint32
99 F_bsize uint32 96 F_bsize uint32
100 F_iosize uint32 97 F_iosize uint32
101 Pad_cgo_0 [4]byte 98 Pad_cgo_0 [4]byte
102 F_blocks uint64 99 F_blocks uint64
103 F_bfree uint64 100 F_bfree uint64
104 F_bavail int64 101 F_bavail int64
105 F_files uint64 102 F_files uint64
106 F_ffree uint64 103 F_ffree uint64
107 F_favail int64 104 F_favail int64
108 F_syncwrites uint64 105 F_syncwrites uint64
109 F_syncreads uint64 106 F_syncreads uint64
110 F_asyncwrites uint64 107 F_asyncwrites uint64
111 F_asyncreads uint64 108 F_asyncreads uint64
112 F_fsid Fsid 109 F_fsid Fsid
113 F_namemax uint32 110 F_namemax uint32
114 F_owner uint32 111 F_owner uint32
115 » F_ctime uint32 112 » F_ctime uint64
116 » F_spare [3]uint32
117 F_fstypename [16]int8 113 F_fstypename [16]int8
118 F_mntonname [90]int8 114 F_mntonname [90]int8
119 F_mntfromname [90]int8 115 F_mntfromname [90]int8
120 » Pad_cgo_1 [4]byte 116 » F_mntfromspec [90]int8
117 » Pad_cgo_1 [2]byte
121 Mount_info [160]byte 118 Mount_info [160]byte
122 } 119 }
123 120
124 type Flock_t struct { 121 type Flock_t struct {
125 Start int64 122 Start int64
126 Len int64 123 Len int64
127 Pid int32 124 Pid int32
128 Type int16 125 Type int16
129 Whence int16 126 Whence int16
130 } 127 }
131 128
132 type Dirent struct { 129 type Dirent struct {
133 » Fileno uint32 130 » Fileno uint64
134 » Reclen uint16 131 » Off int64
135 » Type uint8 132 » Reclen uint16
136 » Namlen uint8 133 » Type uint8
137 » Name [256]int8 134 » Namlen uint8
135 » X__d_padding [4]uint8
136 » Name [256]int8
138 } 137 }
139 138
140 type Fsid struct { 139 type Fsid struct {
141 Val [2]int32 140 Val [2]int32
142 } 141 }
143 142
144 type RawSockaddrInet4 struct { 143 type RawSockaddrInet4 struct {
145 Len uint8 144 Len uint8
146 Family uint8 145 Family uint8
147 Port uint16 146 Port uint16
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 SizeofICMPv6Filter = 0x20 255 SizeofICMPv6Filter = 0x20
257 ) 256 )
258 257
259 const ( 258 const (
260 PTRACE_TRACEME = 0x0 259 PTRACE_TRACEME = 0x0
261 PTRACE_CONT = 0x7 260 PTRACE_CONT = 0x7
262 PTRACE_KILL = 0x8 261 PTRACE_KILL = 0x8
263 ) 262 )
264 263
265 type Kevent_t struct { 264 type Kevent_t struct {
266 » Ident uint32 265 » Ident uint64
267 Filter int16 266 Filter int16
268 Flags uint16 267 Flags uint16
269 Fflags uint32 268 Fflags uint32
270 » Data int32 269 » Data int64
271 Udata *byte 270 Udata *byte
272 } 271 }
273 272
274 type FdSet struct { 273 type FdSet struct {
275 » Bits [32]int32 274 » Bits [32]uint32
276 } 275 }
277 276
278 const ( 277 const (
279 SizeofIfMsghdr = 0xf8 278 SizeofIfMsghdr = 0xf8
280 SizeofIfData = 0xe0 279 SizeofIfData = 0xe0
281 SizeofIfaMsghdr = 0x18 280 SizeofIfaMsghdr = 0x18
282 SizeofIfAnnounceMsghdr = 0x1a 281 SizeofIfAnnounceMsghdr = 0x1a
283 » SizeofRtMsghdr = 0x58 282 » SizeofRtMsghdr = 0x60
284 » SizeofRtMetrics = 0x30 283 » SizeofRtMetrics = 0x38
285 ) 284 )
286 285
287 type IfMsghdr struct { 286 type IfMsghdr struct {
288 Msglen uint16 287 Msglen uint16
289 Version uint8 288 Version uint8
290 Type uint8 289 Type uint8
291 Hdrlen uint16 290 Hdrlen uint16
292 Index uint16 291 Index uint16
293 Tableid uint16 292 Tableid uint16
294 Pad1 uint8 293 Pad1 uint8
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 Fmask int32 363 Fmask int32
365 Pid int32 364 Pid int32
366 Seq int32 365 Seq int32
367 Errno int32 366 Errno int32
368 Inits uint32 367 Inits uint32
369 Rmx RtMetrics 368 Rmx RtMetrics
370 } 369 }
371 370
372 type RtMetrics struct { 371 type RtMetrics struct {
373 Pksent uint64 372 Pksent uint64
373 Expire int64
374 Locks uint32 374 Locks uint32
375 Mtu uint32 375 Mtu uint32
376 Expire uint32
377 Refcnt uint32 376 Refcnt uint32
378 Hopcount uint32 377 Hopcount uint32
379 Recvpipe uint32 378 Recvpipe uint32
380 Sendpipe uint32 379 Sendpipe uint32
381 Ssthresh uint32 380 Ssthresh uint32
382 Rtt uint32 381 Rtt uint32
383 Rttvar uint32 382 Rttvar uint32
383 Pad uint32
384 } 384 }
385 385
386 type Mclpool struct { 386 type Mclpool struct {
387 » Grown uint32 387 » Grown int32
388 Alive uint16 388 Alive uint16
389 Hwm uint16 389 Hwm uint16
390 Cwm uint16 390 Cwm uint16
391 Lwm uint16 391 Lwm uint16
392 } 392 }
393 393
394 const ( 394 const (
395 SizeofBpfVersion = 0x4 395 SizeofBpfVersion = 0x4
396 SizeofBpfStat = 0x8 396 SizeofBpfStat = 0x8
397 SizeofBpfProgram = 0x10 397 SizeofBpfProgram = 0x10
(...skipping 29 matching lines...) Expand all
427 Caplen uint32 427 Caplen uint32
428 Datalen uint32 428 Datalen uint32
429 Hdrlen uint16 429 Hdrlen uint16
430 Pad_cgo_0 [2]byte 430 Pad_cgo_0 [2]byte
431 } 431 }
432 432
433 type BpfTimeval struct { 433 type BpfTimeval struct {
434 Sec uint32 434 Sec uint32
435 Usec uint32 435 Usec uint32
436 } 436 }
OLDNEW
« no previous file with comments | « src/pkg/syscall/ztypes_openbsd_386.go ('k') | no next file » | no next file with comments »

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