.gitignore added
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / sys@v0.0.0-20210124154548-22da62e12c0c / unix / ztypes_openbsd_arm64.go
1 // cgo -godefs -- -fsigned-char types_openbsd.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 // +build arm64,openbsd
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 uint64
54         Max uint64
55 }
56
57 type _Gid_t uint32
58
59 type Stat_t struct {
60         Mode    uint32
61         Dev     int32
62         Ino     uint64
63         Nlink   uint32
64         Uid     uint32
65         Gid     uint32
66         Rdev    int32
67         Atim    Timespec
68         Mtim    Timespec
69         Ctim    Timespec
70         Size    int64
71         Blocks  int64
72         Blksize int32
73         Flags   uint32
74         Gen     uint32
75         _       Timespec
76 }
77
78 type Statfs_t struct {
79         F_flags       uint32
80         F_bsize       uint32
81         F_iosize      uint32
82         F_blocks      uint64
83         F_bfree       uint64
84         F_bavail      int64
85         F_files       uint64
86         F_ffree       uint64
87         F_favail      int64
88         F_syncwrites  uint64
89         F_syncreads   uint64
90         F_asyncwrites uint64
91         F_asyncreads  uint64
92         F_fsid        Fsid
93         F_namemax     uint32
94         F_owner       uint32
95         F_ctime       uint64
96         F_fstypename  [16]int8
97         F_mntonname   [90]int8
98         F_mntfromname [90]int8
99         F_mntfromspec [90]int8
100         _             [2]byte
101         Mount_info    [160]byte
102 }
103
104 type Flock_t struct {
105         Start  int64
106         Len    int64
107         Pid    int32
108         Type   int16
109         Whence int16
110 }
111
112 type Dirent struct {
113         Fileno uint64
114         Off    int64
115         Reclen uint16
116         Type   uint8
117         Namlen uint8
118         _      [4]uint8
119         Name   [256]int8
120 }
121
122 type Fsid struct {
123         Val [2]int32
124 }
125
126 const (
127         PathMax = 0x400
128 )
129
130 type RawSockaddrInet4 struct {
131         Len    uint8
132         Family uint8
133         Port   uint16
134         Addr   [4]byte /* in_addr */
135         Zero   [8]int8
136 }
137
138 type RawSockaddrInet6 struct {
139         Len      uint8
140         Family   uint8
141         Port     uint16
142         Flowinfo uint32
143         Addr     [16]byte /* in6_addr */
144         Scope_id uint32
145 }
146
147 type RawSockaddrUnix struct {
148         Len    uint8
149         Family uint8
150         Path   [104]int8
151 }
152
153 type RawSockaddrDatalink struct {
154         Len    uint8
155         Family uint8
156         Index  uint16
157         Type   uint8
158         Nlen   uint8
159         Alen   uint8
160         Slen   uint8
161         Data   [24]int8
162 }
163
164 type RawSockaddr struct {
165         Len    uint8
166         Family uint8
167         Data   [14]int8
168 }
169
170 type RawSockaddrAny struct {
171         Addr RawSockaddr
172         Pad  [92]int8
173 }
174
175 type _Socklen uint32
176
177 type Linger struct {
178         Onoff  int32
179         Linger int32
180 }
181
182 type Iovec struct {
183         Base *byte
184         Len  uint64
185 }
186
187 type IPMreq struct {
188         Multiaddr [4]byte /* in_addr */
189         Interface [4]byte /* in_addr */
190 }
191
192 type IPv6Mreq struct {
193         Multiaddr [16]byte /* in6_addr */
194         Interface uint32
195 }
196
197 type Msghdr struct {
198         Name       *byte
199         Namelen    uint32
200         Iov        *Iovec
201         Iovlen     uint32
202         Control    *byte
203         Controllen uint32
204         Flags      int32
205 }
206
207 type Cmsghdr struct {
208         Len   uint32
209         Level int32
210         Type  int32
211 }
212
213 type Inet6Pktinfo struct {
214         Addr    [16]byte /* in6_addr */
215         Ifindex uint32
216 }
217
218 type IPv6MTUInfo struct {
219         Addr RawSockaddrInet6
220         Mtu  uint32
221 }
222
223 type ICMPv6Filter struct {
224         Filt [8]uint32
225 }
226
227 const (
228         SizeofSockaddrInet4    = 0x10
229         SizeofSockaddrInet6    = 0x1c
230         SizeofSockaddrAny      = 0x6c
231         SizeofSockaddrUnix     = 0x6a
232         SizeofSockaddrDatalink = 0x20
233         SizeofLinger           = 0x8
234         SizeofIovec            = 0x10
235         SizeofIPMreq           = 0x8
236         SizeofIPv6Mreq         = 0x14
237         SizeofMsghdr           = 0x30
238         SizeofCmsghdr          = 0xc
239         SizeofInet6Pktinfo     = 0x14
240         SizeofIPv6MTUInfo      = 0x20
241         SizeofICMPv6Filter     = 0x20
242 )
243
244 const (
245         PTRACE_TRACEME = 0x0
246         PTRACE_CONT    = 0x7
247         PTRACE_KILL    = 0x8
248 )
249
250 type Kevent_t struct {
251         Ident  uint64
252         Filter int16
253         Flags  uint16
254         Fflags uint32
255         Data   int64
256         Udata  *byte
257 }
258
259 type FdSet struct {
260         Bits [32]uint32
261 }
262
263 const (
264         SizeofIfMsghdr         = 0xa8
265         SizeofIfData           = 0x90
266         SizeofIfaMsghdr        = 0x18
267         SizeofIfAnnounceMsghdr = 0x1a
268         SizeofRtMsghdr         = 0x60
269         SizeofRtMetrics        = 0x38
270 )
271
272 type IfMsghdr struct {
273         Msglen  uint16
274         Version uint8
275         Type    uint8
276         Hdrlen  uint16
277         Index   uint16
278         Tableid uint16
279         Pad1    uint8
280         Pad2    uint8
281         Addrs   int32
282         Flags   int32
283         Xflags  int32
284         Data    IfData
285 }
286
287 type IfData struct {
288         Type         uint8
289         Addrlen      uint8
290         Hdrlen       uint8
291         Link_state   uint8
292         Mtu          uint32
293         Metric       uint32
294         Rdomain      uint32
295         Baudrate     uint64
296         Ipackets     uint64
297         Ierrors      uint64
298         Opackets     uint64
299         Oerrors      uint64
300         Collisions   uint64
301         Ibytes       uint64
302         Obytes       uint64
303         Imcasts      uint64
304         Omcasts      uint64
305         Iqdrops      uint64
306         Oqdrops      uint64
307         Noproto      uint64
308         Capabilities uint32
309         Lastchange   Timeval
310 }
311
312 type IfaMsghdr struct {
313         Msglen  uint16
314         Version uint8
315         Type    uint8
316         Hdrlen  uint16
317         Index   uint16
318         Tableid uint16
319         Pad1    uint8
320         Pad2    uint8
321         Addrs   int32
322         Flags   int32
323         Metric  int32
324 }
325
326 type IfAnnounceMsghdr struct {
327         Msglen  uint16
328         Version uint8
329         Type    uint8
330         Hdrlen  uint16
331         Index   uint16
332         What    uint16
333         Name    [16]int8
334 }
335
336 type RtMsghdr struct {
337         Msglen   uint16
338         Version  uint8
339         Type     uint8
340         Hdrlen   uint16
341         Index    uint16
342         Tableid  uint16
343         Priority uint8
344         Mpls     uint8
345         Addrs    int32
346         Flags    int32
347         Fmask    int32
348         Pid      int32
349         Seq      int32
350         Errno    int32
351         Inits    uint32
352         Rmx      RtMetrics
353 }
354
355 type RtMetrics struct {
356         Pksent   uint64
357         Expire   int64
358         Locks    uint32
359         Mtu      uint32
360         Refcnt   uint32
361         Hopcount uint32
362         Recvpipe uint32
363         Sendpipe uint32
364         Ssthresh uint32
365         Rtt      uint32
366         Rttvar   uint32
367         Pad      uint32
368 }
369
370 type Mclpool struct{}
371
372 const (
373         SizeofBpfVersion = 0x4
374         SizeofBpfStat    = 0x8
375         SizeofBpfProgram = 0x10
376         SizeofBpfInsn    = 0x8
377         SizeofBpfHdr     = 0x14
378 )
379
380 type BpfVersion struct {
381         Major uint16
382         Minor uint16
383 }
384
385 type BpfStat struct {
386         Recv uint32
387         Drop uint32
388 }
389
390 type BpfProgram struct {
391         Len   uint32
392         Insns *BpfInsn
393 }
394
395 type BpfInsn struct {
396         Code uint16
397         Jt   uint8
398         Jf   uint8
399         K    uint32
400 }
401
402 type BpfHdr struct {
403         Tstamp  BpfTimeval
404         Caplen  uint32
405         Datalen uint32
406         Hdrlen  uint16
407         _       [2]byte
408 }
409
410 type BpfTimeval struct {
411         Sec  uint32
412         Usec uint32
413 }
414
415 type Termios struct {
416         Iflag  uint32
417         Oflag  uint32
418         Cflag  uint32
419         Lflag  uint32
420         Cc     [20]uint8
421         Ispeed int32
422         Ospeed int32
423 }
424
425 type Winsize struct {
426         Row    uint16
427         Col    uint16
428         Xpixel uint16
429         Ypixel uint16
430 }
431
432 const (
433         AT_FDCWD            = -0x64
434         AT_SYMLINK_FOLLOW   = 0x4
435         AT_SYMLINK_NOFOLLOW = 0x2
436 )
437
438 type PollFd struct {
439         Fd      int32
440         Events  int16
441         Revents int16
442 }
443
444 const (
445         POLLERR    = 0x8
446         POLLHUP    = 0x10
447         POLLIN     = 0x1
448         POLLNVAL   = 0x20
449         POLLOUT    = 0x4
450         POLLPRI    = 0x2
451         POLLRDBAND = 0x80
452         POLLRDNORM = 0x40
453         POLLWRBAND = 0x100
454         POLLWRNORM = 0x4
455 )
456
457 type Sigset_t uint32
458
459 type Utsname struct {
460         Sysname  [256]byte
461         Nodename [256]byte
462         Release  [256]byte
463         Version  [256]byte
464         Machine  [256]byte
465 }
466
467 const SizeofUvmexp = 0x158
468
469 type Uvmexp struct {
470         Pagesize           int32
471         Pagemask           int32
472         Pageshift          int32
473         Npages             int32
474         Free               int32
475         Active             int32
476         Inactive           int32
477         Paging             int32
478         Wired              int32
479         Zeropages          int32
480         Reserve_pagedaemon int32
481         Reserve_kernel     int32
482         Unused01           int32
483         Vnodepages         int32
484         Vtextpages         int32
485         Freemin            int32
486         Freetarg           int32
487         Inactarg           int32
488         Wiredmax           int32
489         Anonmin            int32
490         Vtextmin           int32
491         Vnodemin           int32
492         Anonminpct         int32
493         Vtextminpct        int32
494         Vnodeminpct        int32
495         Nswapdev           int32
496         Swpages            int32
497         Swpginuse          int32
498         Swpgonly           int32
499         Nswget             int32
500         Nanon              int32
501         Unused05           int32
502         Unused06           int32
503         Faults             int32
504         Traps              int32
505         Intrs              int32
506         Swtch              int32
507         Softs              int32
508         Syscalls           int32
509         Pageins            int32
510         Unused07           int32
511         Unused08           int32
512         Pgswapin           int32
513         Pgswapout          int32
514         Forks              int32
515         Forks_ppwait       int32
516         Forks_sharevm      int32
517         Pga_zerohit        int32
518         Pga_zeromiss       int32
519         Unused09           int32
520         Fltnoram           int32
521         Fltnoanon          int32
522         Fltnoamap          int32
523         Fltpgwait          int32
524         Fltpgrele          int32
525         Fltrelck           int32
526         Fltrelckok         int32
527         Fltanget           int32
528         Fltanretry         int32
529         Fltamcopy          int32
530         Fltnamap           int32
531         Fltnomap           int32
532         Fltlget            int32
533         Fltget             int32
534         Flt_anon           int32
535         Flt_acow           int32
536         Flt_obj            int32
537         Flt_prcopy         int32
538         Flt_przero         int32
539         Pdwoke             int32
540         Pdrevs             int32
541         Pdswout            int32
542         Pdfreed            int32
543         Pdscans            int32
544         Pdanscan           int32
545         Pdobscan           int32
546         Pdreact            int32
547         Pdbusy             int32
548         Pdpageouts         int32
549         Pdpending          int32
550         Pddeact            int32
551         Unused11           int32
552         Unused12           int32
553         Unused13           int32
554         Fpswtch            int32
555         Kmapent            int32
556 }
557
558 const SizeofClockinfo = 0x14
559
560 type Clockinfo struct {
561         Hz      int32
562         Tick    int32
563         Tickadj int32
564         Stathz  int32
565         Profhz  int32
566 }