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