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