diff options
Diffstat (limited to 'vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go | 602 |
1 files changed, 602 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go new file mode 100644 index 0000000..e2d984a --- /dev/null +++ b/vendor/golang.org/x/sys/unix/ztypes_freebsd_amd64.go | |||
@@ -0,0 +1,602 @@ | |||
1 | // cgo -godefs types_freebsd.go | go run mkpost.go | ||
2 | // Code generated by the command above; see README.md. DO NOT EDIT. | ||
3 | |||
4 | // +build amd64,freebsd | ||
5 | |||
6 | package unix | ||
7 | |||
8 | const ( | ||
9 | SizeofPtr = 0x8 | ||
10 | SizeofShort = 0x2 | ||
11 | SizeofInt = 0x4 | ||
12 | SizeofLong = 0x8 | ||
13 | SizeofLongLong = 0x8 | ||
14 | ) | ||
15 | |||
16 | type ( | ||
17 | _C_short int16 | ||
18 | _C_int int32 | ||
19 | _C_long int64 | ||
20 | _C_long_long int64 | ||
21 | ) | ||
22 | |||
23 | type Timespec struct { | ||
24 | Sec int64 | ||
25 | Nsec int64 | ||
26 | } | ||
27 | |||
28 | type Timeval struct { | ||
29 | Sec int64 | ||
30 | Usec int64 | ||
31 | } | ||
32 | |||
33 | type Rusage struct { | ||
34 | Utime Timeval | ||
35 | Stime Timeval | ||
36 | Maxrss int64 | ||
37 | Ixrss int64 | ||
38 | Idrss int64 | ||
39 | Isrss int64 | ||
40 | Minflt int64 | ||
41 | Majflt int64 | ||
42 | Nswap int64 | ||
43 | Inblock int64 | ||
44 | Oublock int64 | ||
45 | Msgsnd int64 | ||
46 | Msgrcv int64 | ||
47 | Nsignals int64 | ||
48 | Nvcsw int64 | ||
49 | Nivcsw int64 | ||
50 | } | ||
51 | |||
52 | type Rlimit struct { | ||
53 | Cur int64 | ||
54 | Max int64 | ||
55 | } | ||
56 | |||
57 | type _Gid_t uint32 | ||
58 | |||
59 | const ( | ||
60 | _statfsVersion = 0x20140518 | ||
61 | _dirblksiz = 0x400 | ||
62 | ) | ||
63 | |||
64 | type Stat_t struct { | ||
65 | Dev uint64 | ||
66 | Ino uint64 | ||
67 | Nlink uint64 | ||
68 | Mode uint16 | ||
69 | _0 int16 | ||
70 | Uid uint32 | ||
71 | Gid uint32 | ||
72 | _1 int32 | ||
73 | Rdev uint64 | ||
74 | Atim Timespec | ||
75 | Mtim Timespec | ||
76 | Ctim Timespec | ||
77 | Birthtim Timespec | ||
78 | Size int64 | ||
79 | Blocks int64 | ||
80 | Blksize int32 | ||
81 | Flags uint32 | ||
82 | Gen uint64 | ||
83 | Spare [10]uint64 | ||
84 | } | ||
85 | |||
86 | type stat_freebsd11_t struct { | ||
87 | Dev uint32 | ||
88 | Ino uint32 | ||
89 | Mode uint16 | ||
90 | Nlink uint16 | ||
91 | Uid uint32 | ||
92 | Gid uint32 | ||
93 | Rdev uint32 | ||
94 | Atim Timespec | ||
95 | Mtim Timespec | ||
96 | Ctim Timespec | ||
97 | Size int64 | ||
98 | Blocks int64 | ||
99 | Blksize int32 | ||
100 | Flags uint32 | ||
101 | Gen uint32 | ||
102 | Lspare int32 | ||
103 | Birthtim Timespec | ||
104 | } | ||
105 | |||
106 | type Statfs_t struct { | ||
107 | Version uint32 | ||
108 | Type uint32 | ||
109 | Flags uint64 | ||
110 | Bsize uint64 | ||
111 | Iosize uint64 | ||
112 | Blocks uint64 | ||
113 | Bfree uint64 | ||
114 | Bavail int64 | ||
115 | Files uint64 | ||
116 | Ffree int64 | ||
117 | Syncwrites uint64 | ||
118 | Asyncwrites uint64 | ||
119 | Syncreads uint64 | ||
120 | Asyncreads uint64 | ||
121 | Spare [10]uint64 | ||
122 | Namemax uint32 | ||
123 | Owner uint32 | ||
124 | Fsid Fsid | ||
125 | Charspare [80]int8 | ||
126 | Fstypename [16]int8 | ||
127 | Mntfromname [1024]int8 | ||
128 | Mntonname [1024]int8 | ||
129 | } | ||
130 | |||
131 | type statfs_freebsd11_t struct { | ||
132 | Version uint32 | ||
133 | Type uint32 | ||
134 | Flags uint64 | ||
135 | Bsize uint64 | ||
136 | Iosize uint64 | ||
137 | Blocks uint64 | ||
138 | Bfree uint64 | ||
139 | Bavail int64 | ||
140 | Files uint64 | ||
141 | Ffree int64 | ||
142 | Syncwrites uint64 | ||
143 | Asyncwrites uint64 | ||
144 | Syncreads uint64 | ||
145 | Asyncreads uint64 | ||
146 | Spare [10]uint64 | ||
147 | Namemax uint32 | ||
148 | Owner uint32 | ||
149 | Fsid Fsid | ||
150 | Charspare [80]int8 | ||
151 | Fstypename [16]int8 | ||
152 | Mntfromname [88]int8 | ||
153 | Mntonname [88]int8 | ||
154 | } | ||
155 | |||
156 | type Flock_t struct { | ||
157 | Start int64 | ||
158 | Len int64 | ||
159 | Pid int32 | ||
160 | Type int16 | ||
161 | Whence int16 | ||
162 | Sysid int32 | ||
163 | _ [4]byte | ||
164 | } | ||
165 | |||
166 | type Dirent struct { | ||
167 | Fileno uint64 | ||
168 | Off int64 | ||
169 | Reclen uint16 | ||
170 | Type uint8 | ||
171 | Pad0 uint8 | ||
172 | Namlen uint16 | ||
173 | Pad1 uint16 | ||
174 | Name [256]int8 | ||
175 | } | ||
176 | |||
177 | type dirent_freebsd11 struct { | ||
178 | Fileno uint32 | ||
179 | Reclen uint16 | ||
180 | Type uint8 | ||
181 | Namlen uint8 | ||
182 | Name [256]int8 | ||
183 | } | ||
184 | |||
185 | type Fsid struct { | ||
186 | Val [2]int32 | ||
187 | } | ||
188 | |||
189 | const ( | ||
190 | PathMax = 0x400 | ||
191 | ) | ||
192 | |||
193 | const ( | ||
194 | FADV_NORMAL = 0x0 | ||
195 | FADV_RANDOM = 0x1 | ||
196 | FADV_SEQUENTIAL = 0x2 | ||
197 | FADV_WILLNEED = 0x3 | ||
198 | FADV_DONTNEED = 0x4 | ||
199 | FADV_NOREUSE = 0x5 | ||
200 | ) | ||
201 | |||
202 | type RawSockaddrInet4 struct { | ||
203 | Len uint8 | ||
204 | Family uint8 | ||
205 | Port uint16 | ||
206 | Addr [4]byte /* in_addr */ | ||
207 | Zero [8]int8 | ||
208 | } | ||
209 | |||
210 | type RawSockaddrInet6 struct { | ||
211 | Len uint8 | ||
212 | Family uint8 | ||
213 | Port uint16 | ||
214 | Flowinfo uint32 | ||
215 | Addr [16]byte /* in6_addr */ | ||
216 | Scope_id uint32 | ||
217 | } | ||
218 | |||
219 | type RawSockaddrUnix struct { | ||
220 | Len uint8 | ||
221 | Family uint8 | ||
222 | Path [104]int8 | ||
223 | } | ||
224 | |||
225 | type RawSockaddrDatalink struct { | ||
226 | Len uint8 | ||
227 | Family uint8 | ||
228 | Index uint16 | ||
229 | Type uint8 | ||
230 | Nlen uint8 | ||
231 | Alen uint8 | ||
232 | Slen uint8 | ||
233 | Data [46]int8 | ||
234 | } | ||
235 | |||
236 | type RawSockaddr struct { | ||
237 | Len uint8 | ||
238 | Family uint8 | ||
239 | Data [14]int8 | ||
240 | } | ||
241 | |||
242 | type RawSockaddrAny struct { | ||
243 | Addr RawSockaddr | ||
244 | Pad [92]int8 | ||
245 | } | ||
246 | |||
247 | type _Socklen uint32 | ||
248 | |||
249 | type Linger struct { | ||
250 | Onoff int32 | ||
251 | Linger int32 | ||
252 | } | ||
253 | |||
254 | type Iovec struct { | ||
255 | Base *byte | ||
256 | Len uint64 | ||
257 | } | ||
258 | |||
259 | type IPMreq struct { | ||
260 | Multiaddr [4]byte /* in_addr */ | ||
261 | Interface [4]byte /* in_addr */ | ||
262 | } | ||
263 | |||
264 | type IPMreqn struct { | ||
265 | Multiaddr [4]byte /* in_addr */ | ||
266 | Address [4]byte /* in_addr */ | ||
267 | Ifindex int32 | ||
268 | } | ||
269 | |||
270 | type IPv6Mreq struct { | ||
271 | Multiaddr [16]byte /* in6_addr */ | ||
272 | Interface uint32 | ||
273 | } | ||
274 | |||
275 | type Msghdr struct { | ||
276 | Name *byte | ||
277 | Namelen uint32 | ||
278 | _ [4]byte | ||
279 | Iov *Iovec | ||
280 | Iovlen int32 | ||
281 | _ [4]byte | ||
282 | Control *byte | ||
283 | Controllen uint32 | ||
284 | Flags int32 | ||
285 | } | ||
286 | |||
287 | type Cmsghdr struct { | ||
288 | Len uint32 | ||
289 | Level int32 | ||
290 | Type int32 | ||
291 | } | ||
292 | |||
293 | type Inet6Pktinfo struct { | ||
294 | Addr [16]byte /* in6_addr */ | ||
295 | Ifindex uint32 | ||
296 | } | ||
297 | |||
298 | type IPv6MTUInfo struct { | ||
299 | Addr RawSockaddrInet6 | ||
300 | Mtu uint32 | ||
301 | } | ||
302 | |||
303 | type ICMPv6Filter struct { | ||
304 | Filt [8]uint32 | ||
305 | } | ||
306 | |||
307 | const ( | ||
308 | SizeofSockaddrInet4 = 0x10 | ||
309 | SizeofSockaddrInet6 = 0x1c | ||
310 | SizeofSockaddrAny = 0x6c | ||
311 | SizeofSockaddrUnix = 0x6a | ||
312 | SizeofSockaddrDatalink = 0x36 | ||
313 | SizeofLinger = 0x8 | ||
314 | SizeofIPMreq = 0x8 | ||
315 | SizeofIPMreqn = 0xc | ||
316 | SizeofIPv6Mreq = 0x14 | ||
317 | SizeofMsghdr = 0x30 | ||
318 | SizeofCmsghdr = 0xc | ||
319 | SizeofInet6Pktinfo = 0x14 | ||
320 | SizeofIPv6MTUInfo = 0x20 | ||
321 | SizeofICMPv6Filter = 0x20 | ||
322 | ) | ||
323 | |||
324 | const ( | ||
325 | PTRACE_TRACEME = 0x0 | ||
326 | PTRACE_CONT = 0x7 | ||
327 | PTRACE_KILL = 0x8 | ||
328 | ) | ||
329 | |||
330 | type Kevent_t struct { | ||
331 | Ident uint64 | ||
332 | Filter int16 | ||
333 | Flags uint16 | ||
334 | Fflags uint32 | ||
335 | Data int64 | ||
336 | Udata *byte | ||
337 | } | ||
338 | |||
339 | type FdSet struct { | ||
340 | _ [16]uint64 | ||
341 | } | ||
342 | |||
343 | const ( | ||
344 | sizeofIfMsghdr = 0xa8 | ||
345 | SizeofIfMsghdr = 0xa8 | ||
346 | sizeofIfData = 0x98 | ||
347 | SizeofIfData = 0x98 | ||
348 | SizeofIfaMsghdr = 0x14 | ||
349 | SizeofIfmaMsghdr = 0x10 | ||
350 | SizeofIfAnnounceMsghdr = 0x18 | ||
351 | SizeofRtMsghdr = 0x98 | ||
352 | SizeofRtMetrics = 0x70 | ||
353 | ) | ||
354 | |||
355 | type ifMsghdr struct { | ||
356 | Msglen uint16 | ||
357 | Version uint8 | ||
358 | Type uint8 | ||
359 | Addrs int32 | ||
360 | Flags int32 | ||
361 | Index uint16 | ||
362 | _ [2]byte | ||
363 | Data ifData | ||
364 | } | ||
365 | |||
366 | type IfMsghdr struct { | ||
367 | Msglen uint16 | ||
368 | Version uint8 | ||
369 | Type uint8 | ||
370 | Addrs int32 | ||
371 | Flags int32 | ||
372 | Index uint16 | ||
373 | _ [2]byte | ||
374 | Data IfData | ||
375 | } | ||
376 | |||
377 | type ifData struct { | ||
378 | Type uint8 | ||
379 | Physical uint8 | ||
380 | Addrlen uint8 | ||
381 | Hdrlen uint8 | ||
382 | Link_state uint8 | ||
383 | Vhid uint8 | ||
384 | Datalen uint16 | ||
385 | Mtu uint32 | ||
386 | Metric uint32 | ||
387 | Baudrate uint64 | ||
388 | Ipackets uint64 | ||
389 | Ierrors uint64 | ||
390 | Opackets uint64 | ||
391 | Oerrors uint64 | ||
392 | Collisions uint64 | ||
393 | Ibytes uint64 | ||
394 | Obytes uint64 | ||
395 | Imcasts uint64 | ||
396 | Omcasts uint64 | ||
397 | Iqdrops uint64 | ||
398 | Oqdrops uint64 | ||
399 | Noproto uint64 | ||
400 | Hwassist uint64 | ||
401 | _ [8]byte | ||
402 | _ [16]byte | ||
403 | } | ||
404 | |||
405 | type IfData struct { | ||
406 | Type uint8 | ||
407 | Physical uint8 | ||
408 | Addrlen uint8 | ||
409 | Hdrlen uint8 | ||
410 | Link_state uint8 | ||
411 | Spare_char1 uint8 | ||
412 | Spare_char2 uint8 | ||
413 | Datalen uint8 | ||
414 | Mtu uint64 | ||
415 | Metric uint64 | ||
416 | Baudrate uint64 | ||
417 | Ipackets uint64 | ||
418 | Ierrors uint64 | ||
419 | Opackets uint64 | ||
420 | Oerrors uint64 | ||
421 | Collisions uint64 | ||
422 | Ibytes uint64 | ||
423 | Obytes uint64 | ||
424 | Imcasts uint64 | ||
425 | Omcasts uint64 | ||
426 | Iqdrops uint64 | ||
427 | Noproto uint64 | ||
428 | Hwassist uint64 | ||
429 | Epoch int64 | ||
430 | Lastchange Timeval | ||
431 | } | ||
432 | |||
433 | type IfaMsghdr struct { | ||
434 | Msglen uint16 | ||
435 | Version uint8 | ||
436 | Type uint8 | ||
437 | Addrs int32 | ||
438 | Flags int32 | ||
439 | Index uint16 | ||
440 | _ [2]byte | ||
441 | Metric int32 | ||
442 | } | ||
443 | |||
444 | type IfmaMsghdr struct { | ||
445 | Msglen uint16 | ||
446 | Version uint8 | ||
447 | Type uint8 | ||
448 | Addrs int32 | ||
449 | Flags int32 | ||
450 | Index uint16 | ||
451 | _ [2]byte | ||
452 | } | ||
453 | |||
454 | type IfAnnounceMsghdr struct { | ||
455 | Msglen uint16 | ||
456 | Version uint8 | ||
457 | Type uint8 | ||
458 | Index uint16 | ||
459 | Name [16]int8 | ||
460 | What uint16 | ||
461 | } | ||
462 | |||
463 | type RtMsghdr struct { | ||
464 | Msglen uint16 | ||
465 | Version uint8 | ||
466 | Type uint8 | ||
467 | Index uint16 | ||
468 | _ [2]byte | ||
469 | Flags int32 | ||
470 | Addrs int32 | ||
471 | Pid int32 | ||
472 | Seq int32 | ||
473 | Errno int32 | ||
474 | Fmask int32 | ||
475 | Inits uint64 | ||
476 | Rmx RtMetrics | ||
477 | } | ||
478 | |||
479 | type RtMetrics struct { | ||
480 | Locks uint64 | ||
481 | Mtu uint64 | ||
482 | Hopcount uint64 | ||
483 | Expire uint64 | ||
484 | Recvpipe uint64 | ||
485 | Sendpipe uint64 | ||
486 | Ssthresh uint64 | ||
487 | Rtt uint64 | ||
488 | Rttvar uint64 | ||
489 | Pksent uint64 | ||
490 | Weight uint64 | ||
491 | Filler [3]uint64 | ||
492 | } | ||
493 | |||
494 | const ( | ||
495 | SizeofBpfVersion = 0x4 | ||
496 | SizeofBpfStat = 0x8 | ||
497 | SizeofBpfZbuf = 0x18 | ||
498 | SizeofBpfProgram = 0x10 | ||
499 | SizeofBpfInsn = 0x8 | ||
500 | SizeofBpfHdr = 0x20 | ||
501 | SizeofBpfZbufHeader = 0x20 | ||
502 | ) | ||
503 | |||
504 | type BpfVersion struct { | ||
505 | Major uint16 | ||
506 | Minor uint16 | ||
507 | } | ||
508 | |||
509 | type BpfStat struct { | ||
510 | Recv uint32 | ||
511 | Drop uint32 | ||
512 | } | ||
513 | |||
514 | type BpfZbuf struct { | ||
515 | Bufa *byte | ||
516 | Bufb *byte | ||
517 | Buflen uint64 | ||
518 | } | ||
519 | |||
520 | type BpfProgram struct { | ||
521 | Len uint32 | ||
522 | _ [4]byte | ||
523 | Insns *BpfInsn | ||
524 | } | ||
525 | |||
526 | type BpfInsn struct { | ||
527 | Code uint16 | ||
528 | Jt uint8 | ||
529 | Jf uint8 | ||
530 | K uint32 | ||
531 | } | ||
532 | |||
533 | type BpfHdr struct { | ||
534 | Tstamp Timeval | ||
535 | Caplen uint32 | ||
536 | Datalen uint32 | ||
537 | Hdrlen uint16 | ||
538 | _ [6]byte | ||
539 | } | ||
540 | |||
541 | type BpfZbufHeader struct { | ||
542 | Kernel_gen uint32 | ||
543 | Kernel_len uint32 | ||
544 | User_gen uint32 | ||
545 | _ [5]uint32 | ||
546 | } | ||
547 | |||
548 | type Termios struct { | ||
549 | Iflag uint32 | ||
550 | Oflag uint32 | ||
551 | Cflag uint32 | ||
552 | Lflag uint32 | ||
553 | Cc [20]uint8 | ||
554 | Ispeed uint32 | ||
555 | Ospeed uint32 | ||
556 | } | ||
557 | |||
558 | type Winsize struct { | ||
559 | Row uint16 | ||
560 | Col uint16 | ||
561 | Xpixel uint16 | ||
562 | Ypixel uint16 | ||
563 | } | ||
564 | |||
565 | const ( | ||
566 | AT_FDCWD = -0x64 | ||
567 | AT_REMOVEDIR = 0x800 | ||
568 | AT_SYMLINK_FOLLOW = 0x400 | ||
569 | AT_SYMLINK_NOFOLLOW = 0x200 | ||
570 | ) | ||
571 | |||
572 | type PollFd struct { | ||
573 | Fd int32 | ||
574 | Events int16 | ||
575 | Revents int16 | ||
576 | } | ||
577 | |||
578 | const ( | ||
579 | POLLERR = 0x8 | ||
580 | POLLHUP = 0x10 | ||
581 | POLLIN = 0x1 | ||
582 | POLLINIGNEOF = 0x2000 | ||
583 | POLLNVAL = 0x20 | ||
584 | POLLOUT = 0x4 | ||
585 | POLLPRI = 0x2 | ||
586 | POLLRDBAND = 0x80 | ||
587 | POLLRDNORM = 0x40 | ||
588 | POLLWRBAND = 0x100 | ||
589 | POLLWRNORM = 0x4 | ||
590 | ) | ||
591 | |||
592 | type CapRights struct { | ||
593 | Rights [2]uint64 | ||
594 | } | ||
595 | |||
596 | type Utsname struct { | ||
597 | Sysname [256]byte | ||
598 | Nodename [256]byte | ||
599 | Release [256]byte | ||
600 | Version [256]byte | ||
601 | Machine [256]byte | ||
602 | } | ||