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