OSDN Git Service

new repo
[bytom/vapor.git] / vendor / golang.org / x / sys / unix / ztypes_netbsd_386.go
1 // Created by cgo -godefs - DO NOT EDIT
2 // cgo -godefs types_netbsd.go
3
4 // +build 386,netbsd
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 }
27
28 type Timeval struct {
29         Sec  int64
30         Usec int32
31 }
32
33 type 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
52 type Rlimit struct {
53         Cur uint64
54         Max uint64
55 }
56
57 type _Gid_t uint32
58
59 type Stat_t struct {
60         Dev           uint64
61         Mode          uint32
62         Ino           uint64
63         Nlink         uint32
64         Uid           uint32
65         Gid           uint32
66         Rdev          uint64
67         Atimespec     Timespec
68         Mtimespec     Timespec
69         Ctimespec     Timespec
70         Birthtimespec Timespec
71         Size          int64
72         Blocks        int64
73         Blksize       uint32
74         Flags         uint32
75         Gen           uint32
76         Spare         [2]uint32
77 }
78
79 type Statfs_t [0]byte
80
81 type Flock_t struct {
82         Start  int64
83         Len    int64
84         Pid    int32
85         Type   int16
86         Whence int16
87 }
88
89 type Dirent struct {
90         Fileno    uint64
91         Reclen    uint16
92         Namlen    uint16
93         Type      uint8
94         Name      [512]int8
95         Pad_cgo_0 [3]byte
96 }
97
98 type Fsid struct {
99         X__fsid_val [2]int32
100 }
101
102 type RawSockaddrInet4 struct {
103         Len    uint8
104         Family uint8
105         Port   uint16
106         Addr   [4]byte /* in_addr */
107         Zero   [8]int8
108 }
109
110 type RawSockaddrInet6 struct {
111         Len      uint8
112         Family   uint8
113         Port     uint16
114         Flowinfo uint32
115         Addr     [16]byte /* in6_addr */
116         Scope_id uint32
117 }
118
119 type RawSockaddrUnix struct {
120         Len    uint8
121         Family uint8
122         Path   [104]int8
123 }
124
125 type RawSockaddrDatalink struct {
126         Len    uint8
127         Family uint8
128         Index  uint16
129         Type   uint8
130         Nlen   uint8
131         Alen   uint8
132         Slen   uint8
133         Data   [12]int8
134 }
135
136 type RawSockaddr struct {
137         Len    uint8
138         Family uint8
139         Data   [14]int8
140 }
141
142 type RawSockaddrAny struct {
143         Addr RawSockaddr
144         Pad  [92]int8
145 }
146
147 type _Socklen uint32
148
149 type Linger struct {
150         Onoff  int32
151         Linger int32
152 }
153
154 type Iovec struct {
155         Base *byte
156         Len  uint32
157 }
158
159 type IPMreq struct {
160         Multiaddr [4]byte /* in_addr */
161         Interface [4]byte /* in_addr */
162 }
163
164 type IPv6Mreq struct {
165         Multiaddr [16]byte /* in6_addr */
166         Interface uint32
167 }
168
169 type Msghdr struct {
170         Name       *byte
171         Namelen    uint32
172         Iov        *Iovec
173         Iovlen     int32
174         Control    *byte
175         Controllen uint32
176         Flags      int32
177 }
178
179 type Cmsghdr struct {
180         Len   uint32
181         Level int32
182         Type  int32
183 }
184
185 type Inet6Pktinfo struct {
186         Addr    [16]byte /* in6_addr */
187         Ifindex uint32
188 }
189
190 type IPv6MTUInfo struct {
191         Addr RawSockaddrInet6
192         Mtu  uint32
193 }
194
195 type ICMPv6Filter struct {
196         Filt [8]uint32
197 }
198
199 const (
200         SizeofSockaddrInet4    = 0x10
201         SizeofSockaddrInet6    = 0x1c
202         SizeofSockaddrAny      = 0x6c
203         SizeofSockaddrUnix     = 0x6a
204         SizeofSockaddrDatalink = 0x14
205         SizeofLinger           = 0x8
206         SizeofIPMreq           = 0x8
207         SizeofIPv6Mreq         = 0x14
208         SizeofMsghdr           = 0x1c
209         SizeofCmsghdr          = 0xc
210         SizeofInet6Pktinfo     = 0x14
211         SizeofIPv6MTUInfo      = 0x20
212         SizeofICMPv6Filter     = 0x20
213 )
214
215 const (
216         PTRACE_TRACEME = 0x0
217         PTRACE_CONT    = 0x7
218         PTRACE_KILL    = 0x8
219 )
220
221 type Kevent_t struct {
222         Ident  uint32
223         Filter uint32
224         Flags  uint32
225         Fflags uint32
226         Data   int64
227         Udata  int32
228 }
229
230 type FdSet struct {
231         Bits [8]uint32
232 }
233
234 const (
235         SizeofIfMsghdr         = 0x98
236         SizeofIfData           = 0x84
237         SizeofIfaMsghdr        = 0x18
238         SizeofIfAnnounceMsghdr = 0x18
239         SizeofRtMsghdr         = 0x78
240         SizeofRtMetrics        = 0x50
241 )
242
243 type IfMsghdr struct {
244         Msglen    uint16
245         Version   uint8
246         Type      uint8
247         Addrs     int32
248         Flags     int32
249         Index     uint16
250         Pad_cgo_0 [2]byte
251         Data      IfData
252         Pad_cgo_1 [4]byte
253 }
254
255 type IfData struct {
256         Type       uint8
257         Addrlen    uint8
258         Hdrlen     uint8
259         Pad_cgo_0  [1]byte
260         Link_state int32
261         Mtu        uint64
262         Metric     uint64
263         Baudrate   uint64
264         Ipackets   uint64
265         Ierrors    uint64
266         Opackets   uint64
267         Oerrors    uint64
268         Collisions uint64
269         Ibytes     uint64
270         Obytes     uint64
271         Imcasts    uint64
272         Omcasts    uint64
273         Iqdrops    uint64
274         Noproto    uint64
275         Lastchange Timespec
276 }
277
278 type IfaMsghdr struct {
279         Msglen    uint16
280         Version   uint8
281         Type      uint8
282         Addrs     int32
283         Flags     int32
284         Metric    int32
285         Index     uint16
286         Pad_cgo_0 [6]byte
287 }
288
289 type IfAnnounceMsghdr struct {
290         Msglen  uint16
291         Version uint8
292         Type    uint8
293         Index   uint16
294         Name    [16]int8
295         What    uint16
296 }
297
298 type RtMsghdr struct {
299         Msglen    uint16
300         Version   uint8
301         Type      uint8
302         Index     uint16
303         Pad_cgo_0 [2]byte
304         Flags     int32
305         Addrs     int32
306         Pid       int32
307         Seq       int32
308         Errno     int32
309         Use       int32
310         Inits     int32
311         Pad_cgo_1 [4]byte
312         Rmx       RtMetrics
313 }
314
315 type RtMetrics struct {
316         Locks    uint64
317         Mtu      uint64
318         Hopcount uint64
319         Recvpipe uint64
320         Sendpipe uint64
321         Ssthresh uint64
322         Rtt      uint64
323         Rttvar   uint64
324         Expire   int64
325         Pksent   int64
326 }
327
328 type Mclpool [0]byte
329
330 const (
331         SizeofBpfVersion = 0x4
332         SizeofBpfStat    = 0x80
333         SizeofBpfProgram = 0x8
334         SizeofBpfInsn    = 0x8
335         SizeofBpfHdr     = 0x14
336 )
337
338 type BpfVersion struct {
339         Major uint16
340         Minor uint16
341 }
342
343 type BpfStat struct {
344         Recv    uint64
345         Drop    uint64
346         Capt    uint64
347         Padding [13]uint64
348 }
349
350 type BpfProgram struct {
351         Len   uint32
352         Insns *BpfInsn
353 }
354
355 type BpfInsn struct {
356         Code uint16
357         Jt   uint8
358         Jf   uint8
359         K    uint32
360 }
361
362 type BpfHdr struct {
363         Tstamp    BpfTimeval
364         Caplen    uint32
365         Datalen   uint32
366         Hdrlen    uint16
367         Pad_cgo_0 [2]byte
368 }
369
370 type BpfTimeval struct {
371         Sec  int32
372         Usec int32
373 }
374
375 type Termios struct {
376         Iflag  uint32
377         Oflag  uint32
378         Cflag  uint32
379         Lflag  uint32
380         Cc     [20]uint8
381         Ispeed int32
382         Ospeed int32
383 }
384
385 const (
386         AT_FDCWD            = -0x64
387         AT_SYMLINK_NOFOLLOW = 0x200
388 )
389
390 type Sysctlnode struct {
391         Flags           uint32
392         Num             int32
393         Name            [32]int8
394         Ver             uint32
395         X__rsvd         uint32
396         Un              [16]byte
397         X_sysctl_size   [8]byte
398         X_sysctl_func   [8]byte
399         X_sysctl_parent [8]byte
400         X_sysctl_desc   [8]byte
401 }