.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_arm64.go
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 // +build arm64,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_GETLWPLIST = 0xf
329         PTRACE_GETNUMLWPS = 0xe
330         PTRACE_GETREGS    = 0x21
331         PTRACE_IO         = 0xc
332         PTRACE_KILL       = 0x8
333         PTRACE_LWPEVENTS  = 0x18
334         PTRACE_LWPINFO    = 0xd
335         PTRACE_SETFPREGS  = 0x24
336         PTRACE_SETREGS    = 0x22
337         PTRACE_SINGLESTEP = 0x9
338         PTRACE_TRACEME    = 0x0
339 )
340
341 const (
342         PIOD_READ_D  = 0x1
343         PIOD_WRITE_D = 0x2
344         PIOD_READ_I  = 0x3
345         PIOD_WRITE_I = 0x4
346 )
347
348 const (
349         PL_FLAG_BORN   = 0x100
350         PL_FLAG_EXITED = 0x200
351         PL_FLAG_SI     = 0x20
352 )
353
354 const (
355         TRAP_BRKPT = 0x1
356         TRAP_TRACE = 0x2
357 )
358
359 type PtraceLwpInfoStruct struct {
360         Lwpid        int32
361         Event        int32
362         Flags        int32
363         Sigmask      Sigset_t
364         Siglist      Sigset_t
365         Siginfo      __Siginfo
366         Tdname       [20]int8
367         Child_pid    int32
368         Syscall_code uint32
369         Syscall_narg uint32
370 }
371
372 type __Siginfo struct {
373         Signo  int32
374         Errno  int32
375         Code   int32
376         Pid    int32
377         Uid    uint32
378         Status int32
379         Addr   *byte
380         Value  [8]byte
381         _      [40]byte
382 }
383
384 type Sigset_t struct {
385         Val [4]uint32
386 }
387
388 type Reg struct {
389         X    [30]uint64
390         Lr   uint64
391         Sp   uint64
392         Elr  uint64
393         Spsr uint32
394         _    [4]byte
395 }
396
397 type FpReg struct {
398         Q  [32][16]uint8
399         Sr uint32
400         Cr uint32
401         _  [8]byte
402 }
403
404 type PtraceIoDesc struct {
405         Op   int32
406         Offs *byte
407         Addr *byte
408         Len  uint64
409 }
410
411 type Kevent_t struct {
412         Ident  uint64
413         Filter int16
414         Flags  uint16
415         Fflags uint32
416         Data   int64
417         Udata  *byte
418 }
419
420 type FdSet struct {
421         Bits [16]uint64
422 }
423
424 const (
425         sizeofIfMsghdr         = 0xa8
426         SizeofIfMsghdr         = 0xa8
427         sizeofIfData           = 0x98
428         SizeofIfData           = 0x98
429         SizeofIfaMsghdr        = 0x14
430         SizeofIfmaMsghdr       = 0x10
431         SizeofIfAnnounceMsghdr = 0x18
432         SizeofRtMsghdr         = 0x98
433         SizeofRtMetrics        = 0x70
434 )
435
436 type ifMsghdr struct {
437         Msglen  uint16
438         Version uint8
439         Type    uint8
440         Addrs   int32
441         Flags   int32
442         Index   uint16
443         _       uint16
444         Data    ifData
445 }
446
447 type IfMsghdr struct {
448         Msglen  uint16
449         Version uint8
450         Type    uint8
451         Addrs   int32
452         Flags   int32
453         Index   uint16
454         Data    IfData
455 }
456
457 type ifData struct {
458         Type       uint8
459         Physical   uint8
460         Addrlen    uint8
461         Hdrlen     uint8
462         Link_state uint8
463         Vhid       uint8
464         Datalen    uint16
465         Mtu        uint32
466         Metric     uint32
467         Baudrate   uint64
468         Ipackets   uint64
469         Ierrors    uint64
470         Opackets   uint64
471         Oerrors    uint64
472         Collisions uint64
473         Ibytes     uint64
474         Obytes     uint64
475         Imcasts    uint64
476         Omcasts    uint64
477         Iqdrops    uint64
478         Oqdrops    uint64
479         Noproto    uint64
480         Hwassist   uint64
481         _          [8]byte
482         _          [16]byte
483 }
484
485 type IfData struct {
486         Type        uint8
487         Physical    uint8
488         Addrlen     uint8
489         Hdrlen      uint8
490         Link_state  uint8
491         Spare_char1 uint8
492         Spare_char2 uint8
493         Datalen     uint8
494         Mtu         uint64
495         Metric      uint64
496         Baudrate    uint64
497         Ipackets    uint64
498         Ierrors     uint64
499         Opackets    uint64
500         Oerrors     uint64
501         Collisions  uint64
502         Ibytes      uint64
503         Obytes      uint64
504         Imcasts     uint64
505         Omcasts     uint64
506         Iqdrops     uint64
507         Noproto     uint64
508         Hwassist    uint64
509         Epoch       int64
510         Lastchange  Timeval
511 }
512
513 type IfaMsghdr struct {
514         Msglen  uint16
515         Version uint8
516         Type    uint8
517         Addrs   int32
518         Flags   int32
519         Index   uint16
520         _       uint16
521         Metric  int32
522 }
523
524 type IfmaMsghdr struct {
525         Msglen  uint16
526         Version uint8
527         Type    uint8
528         Addrs   int32
529         Flags   int32
530         Index   uint16
531         _       uint16
532 }
533
534 type IfAnnounceMsghdr struct {
535         Msglen  uint16
536         Version uint8
537         Type    uint8
538         Index   uint16
539         Name    [16]int8
540         What    uint16
541 }
542
543 type RtMsghdr struct {
544         Msglen  uint16
545         Version uint8
546         Type    uint8
547         Index   uint16
548         _       uint16
549         Flags   int32
550         Addrs   int32
551         Pid     int32
552         Seq     int32
553         Errno   int32
554         Fmask   int32
555         Inits   uint64
556         Rmx     RtMetrics
557 }
558
559 type RtMetrics struct {
560         Locks    uint64
561         Mtu      uint64
562         Hopcount uint64
563         Expire   uint64
564         Recvpipe uint64
565         Sendpipe uint64
566         Ssthresh uint64
567         Rtt      uint64
568         Rttvar   uint64
569         Pksent   uint64
570         Weight   uint64
571         Filler   [3]uint64
572 }
573
574 const (
575         SizeofBpfVersion    = 0x4
576         SizeofBpfStat       = 0x8
577         SizeofBpfZbuf       = 0x18
578         SizeofBpfProgram    = 0x10
579         SizeofBpfInsn       = 0x8
580         SizeofBpfHdr        = 0x20
581         SizeofBpfZbufHeader = 0x20
582 )
583
584 type BpfVersion struct {
585         Major uint16
586         Minor uint16
587 }
588
589 type BpfStat struct {
590         Recv uint32
591         Drop uint32
592 }
593
594 type BpfZbuf struct {
595         Bufa   *byte
596         Bufb   *byte
597         Buflen uint64
598 }
599
600 type BpfProgram struct {
601         Len   uint32
602         Insns *BpfInsn
603 }
604
605 type BpfInsn struct {
606         Code uint16
607         Jt   uint8
608         Jf   uint8
609         K    uint32
610 }
611
612 type BpfHdr struct {
613         Tstamp  Timeval
614         Caplen  uint32
615         Datalen uint32
616         Hdrlen  uint16
617         _       [6]byte
618 }
619
620 type BpfZbufHeader struct {
621         Kernel_gen uint32
622         Kernel_len uint32
623         User_gen   uint32
624         _          [5]uint32
625 }
626
627 type Termios struct {
628         Iflag  uint32
629         Oflag  uint32
630         Cflag  uint32
631         Lflag  uint32
632         Cc     [20]uint8
633         Ispeed uint32
634         Ospeed uint32
635 }
636
637 type Winsize struct {
638         Row    uint16
639         Col    uint16
640         Xpixel uint16
641         Ypixel uint16
642 }
643
644 const (
645         AT_FDCWD            = -0x64
646         AT_REMOVEDIR        = 0x800
647         AT_SYMLINK_FOLLOW   = 0x400
648         AT_SYMLINK_NOFOLLOW = 0x200
649 )
650
651 type PollFd struct {
652         Fd      int32
653         Events  int16
654         Revents int16
655 }
656
657 const (
658         POLLERR      = 0x8
659         POLLHUP      = 0x10
660         POLLIN       = 0x1
661         POLLINIGNEOF = 0x2000
662         POLLNVAL     = 0x20
663         POLLOUT      = 0x4
664         POLLPRI      = 0x2
665         POLLRDBAND   = 0x80
666         POLLRDNORM   = 0x40
667         POLLWRBAND   = 0x100
668         POLLWRNORM   = 0x4
669 )
670
671 type CapRights struct {
672         Rights [2]uint64
673 }
674
675 type Utsname struct {
676         Sysname  [256]byte
677         Nodename [256]byte
678         Release  [256]byte
679         Version  [256]byte
680         Machine  [256]byte
681 }
682
683 const SizeofClockinfo = 0x14
684
685 type Clockinfo struct {
686         Hz     int32
687         Tick   int32
688         Spare  int32
689         Stathz int32
690         Profhz int32
691 }