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