blob: 84cc8d01e6566ec5eb4f4501fb000f15fcc203a5 [file] [log] [blame]
Don Newton98fd8812019-09-23 15:15:02 -04001// cgo -godefs types_netbsd.go | go run mkpost.go
2// Code generated by the command above; see README.md. DO NOT EDIT.
3
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +00004//go:build arm && netbsd
Don Newton98fd8812019-09-23 15:15:02 -04005// +build arm,netbsd
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 Pad_cgo_0 [4]byte
28}
29
30type Timeval struct {
31 Sec int64
32 Usec int32
33 Pad_cgo_0 [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 {
Don Newton7577f072020-01-06 12:41:11 -050063 Dev uint64
64 Mode uint32
65 _ [4]byte
66 Ino uint64
67 Nlink uint32
68 Uid uint32
69 Gid uint32
70 _ [4]byte
71 Rdev uint64
72 Atim Timespec
73 Mtim Timespec
74 Ctim Timespec
75 Btim Timespec
76 Size int64
77 Blocks int64
78 Blksize uint32
79 Flags uint32
80 Gen uint32
81 Spare [2]uint32
82 _ [4]byte
Don Newton98fd8812019-09-23 15:15:02 -040083}
84
85type Statfs_t [0]byte
86
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +000087type Statvfs_t struct {
88 Flag uint32
89 Bsize uint32
90 Frsize uint32
91 Iosize uint32
92 Blocks uint64
93 Bfree uint64
94 Bavail uint64
95 Bresvd uint64
96 Files uint64
97 Ffree uint64
98 Favail uint64
99 Fresvd uint64
100 Syncreads uint64
101 Syncwrites uint64
102 Asyncreads uint64
103 Asyncwrites uint64
104 Fsidx Fsid
105 Fsid uint32
106 Namemax uint32
107 Owner uint32
108 Spare [4]uint32
109 Fstypename [32]byte
110 Mntonname [1024]byte
111 Mntfromname [1024]byte
112}
113
Don Newton98fd8812019-09-23 15:15:02 -0400114type Flock_t struct {
115 Start int64
116 Len int64
117 Pid int32
118 Type int16
119 Whence int16
120}
121
122type Dirent struct {
123 Fileno uint64
124 Reclen uint16
125 Namlen uint16
126 Type uint8
127 Name [512]int8
128 Pad_cgo_0 [3]byte
129}
130
131type Fsid struct {
132 X__fsid_val [2]int32
133}
134
135const (
136 PathMax = 0x400
137)
138
139const (
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000140 ST_WAIT = 0x1
141 ST_NOWAIT = 0x2
142)
143
144const (
Don Newton98fd8812019-09-23 15:15:02 -0400145 FADV_NORMAL = 0x0
146 FADV_RANDOM = 0x1
147 FADV_SEQUENTIAL = 0x2
148 FADV_WILLNEED = 0x3
149 FADV_DONTNEED = 0x4
150 FADV_NOREUSE = 0x5
151)
152
153type RawSockaddrInet4 struct {
154 Len uint8
155 Family uint8
156 Port uint16
157 Addr [4]byte /* in_addr */
158 Zero [8]int8
159}
160
161type RawSockaddrInet6 struct {
162 Len uint8
163 Family uint8
164 Port uint16
165 Flowinfo uint32
166 Addr [16]byte /* in6_addr */
167 Scope_id uint32
168}
169
170type RawSockaddrUnix struct {
171 Len uint8
172 Family uint8
173 Path [104]int8
174}
175
176type RawSockaddrDatalink struct {
177 Len uint8
178 Family uint8
179 Index uint16
180 Type uint8
181 Nlen uint8
182 Alen uint8
183 Slen uint8
184 Data [12]int8
185}
186
187type RawSockaddr struct {
188 Len uint8
189 Family uint8
190 Data [14]int8
191}
192
193type RawSockaddrAny struct {
194 Addr RawSockaddr
195 Pad [92]int8
196}
197
198type _Socklen uint32
199
200type Linger struct {
201 Onoff int32
202 Linger int32
203}
204
205type Iovec struct {
206 Base *byte
207 Len uint32
208}
209
210type IPMreq struct {
211 Multiaddr [4]byte /* in_addr */
212 Interface [4]byte /* in_addr */
213}
214
215type IPv6Mreq struct {
216 Multiaddr [16]byte /* in6_addr */
217 Interface uint32
218}
219
220type Msghdr struct {
221 Name *byte
222 Namelen uint32
223 Iov *Iovec
224 Iovlen int32
225 Control *byte
226 Controllen uint32
227 Flags int32
228}
229
230type Cmsghdr struct {
231 Len uint32
232 Level int32
233 Type int32
234}
235
236type Inet6Pktinfo struct {
237 Addr [16]byte /* in6_addr */
238 Ifindex uint32
239}
240
241type IPv6MTUInfo struct {
242 Addr RawSockaddrInet6
243 Mtu uint32
244}
245
246type ICMPv6Filter struct {
247 Filt [8]uint32
248}
249
250const (
251 SizeofSockaddrInet4 = 0x10
252 SizeofSockaddrInet6 = 0x1c
253 SizeofSockaddrAny = 0x6c
254 SizeofSockaddrUnix = 0x6a
255 SizeofSockaddrDatalink = 0x14
256 SizeofLinger = 0x8
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000257 SizeofIovec = 0x8
Don Newton98fd8812019-09-23 15:15:02 -0400258 SizeofIPMreq = 0x8
259 SizeofIPv6Mreq = 0x14
260 SizeofMsghdr = 0x1c
261 SizeofCmsghdr = 0xc
262 SizeofInet6Pktinfo = 0x14
263 SizeofIPv6MTUInfo = 0x20
264 SizeofICMPv6Filter = 0x20
265)
266
267const (
268 PTRACE_TRACEME = 0x0
269 PTRACE_CONT = 0x7
270 PTRACE_KILL = 0x8
271)
272
273type Kevent_t struct {
274 Ident uint32
275 Filter uint32
276 Flags uint32
277 Fflags uint32
278 Data int64
279 Udata int32
280 Pad_cgo_0 [4]byte
281}
282
283type FdSet struct {
284 Bits [8]uint32
285}
286
287const (
288 SizeofIfMsghdr = 0x98
289 SizeofIfData = 0x88
290 SizeofIfaMsghdr = 0x18
291 SizeofIfAnnounceMsghdr = 0x18
292 SizeofRtMsghdr = 0x78
293 SizeofRtMetrics = 0x50
294)
295
296type IfMsghdr struct {
297 Msglen uint16
298 Version uint8
299 Type uint8
300 Addrs int32
301 Flags int32
302 Index uint16
303 Pad_cgo_0 [2]byte
304 Data IfData
305}
306
307type IfData struct {
308 Type uint8
309 Addrlen uint8
310 Hdrlen uint8
311 Pad_cgo_0 [1]byte
312 Link_state int32
313 Mtu uint64
314 Metric uint64
315 Baudrate uint64
316 Ipackets uint64
317 Ierrors uint64
318 Opackets uint64
319 Oerrors uint64
320 Collisions uint64
321 Ibytes uint64
322 Obytes uint64
323 Imcasts uint64
324 Omcasts uint64
325 Iqdrops uint64
326 Noproto uint64
327 Lastchange Timespec
328}
329
330type IfaMsghdr struct {
331 Msglen uint16
332 Version uint8
333 Type uint8
334 Addrs int32
335 Flags int32
336 Metric int32
337 Index uint16
338 Pad_cgo_0 [6]byte
339}
340
341type IfAnnounceMsghdr struct {
342 Msglen uint16
343 Version uint8
344 Type uint8
345 Index uint16
346 Name [16]int8
347 What uint16
348}
349
350type RtMsghdr struct {
351 Msglen uint16
352 Version uint8
353 Type uint8
354 Index uint16
355 Pad_cgo_0 [2]byte
356 Flags int32
357 Addrs int32
358 Pid int32
359 Seq int32
360 Errno int32
361 Use int32
362 Inits int32
363 Pad_cgo_1 [4]byte
364 Rmx RtMetrics
365}
366
367type RtMetrics struct {
368 Locks uint64
369 Mtu uint64
370 Hopcount uint64
371 Recvpipe uint64
372 Sendpipe uint64
373 Ssthresh uint64
374 Rtt uint64
375 Rttvar uint64
376 Expire int64
377 Pksent int64
378}
379
380type Mclpool [0]byte
381
382const (
383 SizeofBpfVersion = 0x4
384 SizeofBpfStat = 0x80
385 SizeofBpfProgram = 0x8
386 SizeofBpfInsn = 0x8
387 SizeofBpfHdr = 0x14
388)
389
390type BpfVersion struct {
391 Major uint16
392 Minor uint16
393}
394
395type BpfStat struct {
396 Recv uint64
397 Drop uint64
398 Capt uint64
399 Padding [13]uint64
400}
401
402type BpfProgram struct {
403 Len uint32
404 Insns *BpfInsn
405}
406
407type BpfInsn struct {
408 Code uint16
409 Jt uint8
410 Jf uint8
411 K uint32
412}
413
414type BpfHdr struct {
415 Tstamp BpfTimeval
416 Caplen uint32
417 Datalen uint32
418 Hdrlen uint16
419 Pad_cgo_0 [2]byte
420}
421
422type BpfTimeval struct {
423 Sec int32
424 Usec int32
425}
426
427type Termios struct {
428 Iflag uint32
429 Oflag uint32
430 Cflag uint32
431 Lflag uint32
432 Cc [20]uint8
433 Ispeed int32
434 Ospeed int32
435}
436
437type Winsize struct {
438 Row uint16
439 Col uint16
440 Xpixel uint16
441 Ypixel uint16
442}
443
444type Ptmget struct {
445 Cfd int32
446 Sfd int32
447 Cn [1024]byte
448 Sn [1024]byte
449}
450
451const (
452 AT_FDCWD = -0x64
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000453 AT_EACCESS = 0x100
Don Newton98fd8812019-09-23 15:15:02 -0400454 AT_SYMLINK_NOFOLLOW = 0x200
David K. Bainbridgee05cf0c2021-08-19 03:16:50 +0000455 AT_SYMLINK_FOLLOW = 0x400
456 AT_REMOVEDIR = 0x800
Don Newton98fd8812019-09-23 15:15:02 -0400457)
458
459type PollFd struct {
460 Fd int32
461 Events int16
462 Revents int16
463}
464
465const (
466 POLLERR = 0x8
467 POLLHUP = 0x10
468 POLLIN = 0x1
469 POLLNVAL = 0x20
470 POLLOUT = 0x4
471 POLLPRI = 0x2
472 POLLRDBAND = 0x80
473 POLLRDNORM = 0x40
474 POLLWRBAND = 0x100
475 POLLWRNORM = 0x4
476)
477
478type Sysctlnode struct {
479 Flags uint32
480 Num int32
481 Name [32]int8
482 Ver uint32
483 X__rsvd uint32
484 Un [16]byte
485 X_sysctl_size [8]byte
486 X_sysctl_func [8]byte
487 X_sysctl_parent [8]byte
488 X_sysctl_desc [8]byte
489}
490
491type Utsname struct {
492 Sysname [256]byte
493 Nodename [256]byte
494 Release [256]byte
495 Version [256]byte
496 Machine [256]byte
497}
498
499const SizeofClockinfo = 0x14
500
501type Clockinfo struct {
502 Hz int32
503 Tick int32
504 Tickadj int32
505 Stathz int32
506 Profhz int32
507}