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