.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / sys@v0.0.0-20210124154548-22da62e12c0c / unix / ztypes_freebsd_amd64.go
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         Btim    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         Btim    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]byte
127         Mntfromname [1024]byte
128         Mntonname   [1024]byte
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]byte
152         Mntfromname [88]byte
153         Mntonname   [88]byte
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         Iov        *Iovec
279         Iovlen     int32
280         Control    *byte
281         Controllen uint32
282         Flags      int32
283 }
284
285 type Cmsghdr struct {
286         Len   uint32
287         Level int32
288         Type  int32
289 }
290
291 type Inet6Pktinfo struct {
292         Addr    [16]byte /* in6_addr */
293         Ifindex uint32
294 }
295
296 type IPv6MTUInfo struct {
297         Addr RawSockaddrInet6
298         Mtu  uint32
299 }
300
301 type ICMPv6Filter struct {
302         Filt [8]uint32
303 }
304
305 const (
306         SizeofSockaddrInet4    = 0x10
307         SizeofSockaddrInet6    = 0x1c
308         SizeofSockaddrAny      = 0x6c
309         SizeofSockaddrUnix     = 0x6a
310         SizeofSockaddrDatalink = 0x36
311         SizeofLinger           = 0x8
312         SizeofIovec            = 0x10
313         SizeofIPMreq           = 0x8
314         SizeofIPMreqn          = 0xc
315         SizeofIPv6Mreq         = 0x14
316         SizeofMsghdr           = 0x30
317         SizeofCmsghdr          = 0xc
318         SizeofInet6Pktinfo     = 0x14
319         SizeofIPv6MTUInfo      = 0x20
320         SizeofICMPv6Filter     = 0x20
321 )
322
323 const (
324         PTRACE_ATTACH     = 0xa
325         PTRACE_CONT       = 0x7
326         PTRACE_DETACH     = 0xb
327         PTRACE_GETFPREGS  = 0x23
328         PTRACE_GETFSBASE  = 0x47
329         PTRACE_GETLWPLIST = 0xf
330         PTRACE_GETNUMLWPS = 0xe
331         PTRACE_GETREGS    = 0x21
332         PTRACE_GETXSTATE  = 0x45
333         PTRACE_IO         = 0xc
334         PTRACE_KILL       = 0x8
335         PTRACE_LWPEVENTS  = 0x18
336         PTRACE_LWPINFO    = 0xd
337         PTRACE_SETFPREGS  = 0x24
338         PTRACE_SETREGS    = 0x22
339         PTRACE_SINGLESTEP = 0x9
340         PTRACE_TRACEME    = 0x0
341 )
342
343 const (
344         PIOD_READ_D  = 0x1
345         PIOD_WRITE_D = 0x2
346         PIOD_READ_I  = 0x3
347         PIOD_WRITE_I = 0x4
348 )
349
350 const (
351         PL_FLAG_BORN   = 0x100
352         PL_FLAG_EXITED = 0x200
353         PL_FLAG_SI     = 0x20
354 )
355
356 const (
357         TRAP_BRKPT = 0x1
358         TRAP_TRACE = 0x2
359 )
360
361 type PtraceLwpInfoStruct struct {
362         Lwpid        int32
363         Event        int32
364         Flags        int32
365         Sigmask      Sigset_t
366         Siglist      Sigset_t
367         Siginfo      __Siginfo
368         Tdname       [20]int8
369         Child_pid    int32
370         Syscall_code uint32
371         Syscall_narg uint32
372 }
373
374 type __Siginfo struct {
375         Signo  int32
376         Errno  int32
377         Code   int32
378         Pid    int32
379         Uid    uint32
380         Status int32
381         Addr   *byte
382         Value  [8]byte
383         _      [40]byte
384 }
385
386 type Sigset_t struct {
387         Val [4]uint32
388 }
389
390 type Reg struct {
391         R15    int64
392         R14    int64
393         R13    int64
394         R12    int64
395         R11    int64
396         R10    int64
397         R9     int64
398         R8     int64
399         Rdi    int64
400         Rsi    int64
401         Rbp    int64
402         Rbx    int64
403         Rdx    int64
404         Rcx    int64
405         Rax    int64
406         Trapno uint32
407         Fs     uint16
408         Gs     uint16
409         Err    uint32
410         Es     uint16
411         Ds     uint16
412         Rip    int64
413         Cs     int64
414         Rflags int64
415         Rsp    int64
416         Ss     int64
417 }
418
419 type FpReg struct {
420         Env   [4]uint64
421         Acc   [8][16]uint8
422         Xacc  [16][16]uint8
423         Spare [12]uint64
424 }
425
426 type PtraceIoDesc struct {
427         Op   int32
428         Offs *byte
429         Addr *byte
430         Len  uint64
431 }
432
433 type Kevent_t struct {
434         Ident  uint64
435         Filter int16
436         Flags  uint16
437         Fflags uint32
438         Data   int64
439         Udata  *byte
440 }
441
442 type FdSet struct {
443         Bits [16]uint64
444 }
445
446 const (
447         sizeofIfMsghdr         = 0xa8
448         SizeofIfMsghdr         = 0xa8
449         sizeofIfData           = 0x98
450         SizeofIfData           = 0x98
451         SizeofIfaMsghdr        = 0x14
452         SizeofIfmaMsghdr       = 0x10
453         SizeofIfAnnounceMsghdr = 0x18
454         SizeofRtMsghdr         = 0x98
455         SizeofRtMetrics        = 0x70
456 )
457
458 type ifMsghdr struct {
459         Msglen  uint16
460         Version uint8
461         Type    uint8
462         Addrs   int32
463         Flags   int32
464         Index   uint16
465         _       uint16
466         Data    ifData
467 }
468
469 type IfMsghdr struct {
470         Msglen  uint16
471         Version uint8
472         Type    uint8
473         Addrs   int32
474         Flags   int32
475         Index   uint16
476         Data    IfData
477 }
478
479 type ifData struct {
480         Type       uint8
481         Physical   uint8
482         Addrlen    uint8
483         Hdrlen     uint8
484         Link_state uint8
485         Vhid       uint8
486         Datalen    uint16
487         Mtu        uint32
488         Metric     uint32
489         Baudrate   uint64
490         Ipackets   uint64
491         Ierrors    uint64
492         Opackets   uint64
493         Oerrors    uint64
494         Collisions uint64
495         Ibytes     uint64
496         Obytes     uint64
497         Imcasts    uint64
498         Omcasts    uint64
499         Iqdrops    uint64
500         Oqdrops    uint64
501         Noproto    uint64
502         Hwassist   uint64
503         _          [8]byte
504         _          [16]byte
505 }
506
507 type IfData struct {
508         Type        uint8
509         Physical    uint8
510         Addrlen     uint8
511         Hdrlen      uint8
512         Link_state  uint8
513         Spare_char1 uint8
514         Spare_char2 uint8
515         Datalen     uint8
516         Mtu         uint64
517         Metric      uint64
518         Baudrate    uint64
519         Ipackets    uint64
520         Ierrors     uint64
521         Opackets    uint64
522         Oerrors     uint64
523         Collisions  uint64
524         Ibytes      uint64
525         Obytes      uint64
526         Imcasts     uint64
527         Omcasts     uint64
528         Iqdrops     uint64
529         Noproto     uint64
530         Hwassist    uint64
531         Epoch       int64
532         Lastchange  Timeval
533 }
534
535 type IfaMsghdr struct {
536         Msglen  uint16
537         Version uint8
538         Type    uint8
539         Addrs   int32
540         Flags   int32
541         Index   uint16
542         _       uint16
543         Metric  int32
544 }
545
546 type IfmaMsghdr struct {
547         Msglen  uint16
548         Version uint8
549         Type    uint8
550         Addrs   int32
551         Flags   int32
552         Index   uint16
553         _       uint16
554 }
555
556 type IfAnnounceMsghdr struct {
557         Msglen  uint16
558         Version uint8
559         Type    uint8
560         Index   uint16
561         Name    [16]int8
562         What    uint16
563 }
564
565 type RtMsghdr struct {
566         Msglen  uint16
567         Version uint8
568         Type    uint8
569         Index   uint16
570         _       uint16
571         Flags   int32
572         Addrs   int32
573         Pid     int32
574         Seq     int32
575         Errno   int32
576         Fmask   int32
577         Inits   uint64
578         Rmx     RtMetrics
579 }
580
581 type RtMetrics struct {
582         Locks    uint64
583         Mtu      uint64
584         Hopcount uint64
585         Expire   uint64
586         Recvpipe uint64
587         Sendpipe uint64
588         Ssthresh uint64
589         Rtt      uint64
590         Rttvar   uint64
591         Pksent   uint64
592         Weight   uint64
593         Filler   [3]uint64
594 }
595
596 const (
597         SizeofBpfVersion    = 0x4
598         SizeofBpfStat       = 0x8
599         SizeofBpfZbuf       = 0x18
600         SizeofBpfProgram    = 0x10
601         SizeofBpfInsn       = 0x8
602         SizeofBpfHdr        = 0x20
603         SizeofBpfZbufHeader = 0x20
604 )
605
606 type BpfVersion struct {
607         Major uint16
608         Minor uint16
609 }
610
611 type BpfStat struct {
612         Recv uint32
613         Drop uint32
614 }
615
616 type BpfZbuf struct {
617         Bufa   *byte
618         Bufb   *byte
619         Buflen uint64
620 }
621
622 type BpfProgram struct {
623         Len   uint32
624         Insns *BpfInsn
625 }
626
627 type BpfInsn struct {
628         Code uint16
629         Jt   uint8
630         Jf   uint8
631         K    uint32
632 }
633
634 type BpfHdr struct {
635         Tstamp  Timeval
636         Caplen  uint32
637         Datalen uint32
638         Hdrlen  uint16
639         _       [6]byte
640 }
641
642 type BpfZbufHeader struct {
643         Kernel_gen uint32
644         Kernel_len uint32
645         User_gen   uint32
646         _          [5]uint32
647 }
648
649 type Termios struct {
650         Iflag  uint32
651         Oflag  uint32
652         Cflag  uint32
653         Lflag  uint32
654         Cc     [20]uint8
655         Ispeed uint32
656         Ospeed uint32
657 }
658
659 type Winsize struct {
660         Row    uint16
661         Col    uint16
662         Xpixel uint16
663         Ypixel uint16
664 }
665
666 const (
667         AT_FDCWD            = -0x64
668         AT_REMOVEDIR        = 0x800
669         AT_SYMLINK_FOLLOW   = 0x400
670         AT_SYMLINK_NOFOLLOW = 0x200
671 )
672
673 type PollFd struct {
674         Fd      int32
675         Events  int16
676         Revents int16
677 }
678
679 const (
680         POLLERR      = 0x8
681         POLLHUP      = 0x10
682         POLLIN       = 0x1
683         POLLINIGNEOF = 0x2000
684         POLLNVAL     = 0x20
685         POLLOUT      = 0x4
686         POLLPRI      = 0x2
687         POLLRDBAND   = 0x80
688         POLLRDNORM   = 0x40
689         POLLWRBAND   = 0x100
690         POLLWRNORM   = 0x4
691 )
692
693 type CapRights struct {
694         Rights [2]uint64
695 }
696
697 type Utsname struct {
698         Sysname  [256]byte
699         Nodename [256]byte
700         Release  [256]byte
701         Version  [256]byte
702         Machine  [256]byte
703 }
704
705 const SizeofClockinfo = 0x14
706
707 type Clockinfo struct {
708         Hz     int32
709         Tick   int32
710         Spare  int32
711         Stathz int32
712         Profhz int32
713 }