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