]>
Commit | Line | Data |
---|---|---|
9b12e4fe JC |
1 | // Created by cgo -godefs - DO NOT EDIT |
2 | // cgo -godefs -- -fsigned-char types_freebsd.go | |
3 | ||
4 | // +build arm,freebsd | |
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 | Pad_cgo_0 [4]byte | |
27 | } | |
28 | ||
29 | type Timeval struct { | |
30 | Sec int64 | |
31 | Usec int32 | |
32 | Pad_cgo_0 [4]byte | |
33 | } | |
34 | ||
35 | type Rusage struct { | |
36 | Utime Timeval | |
37 | Stime Timeval | |
38 | Maxrss int32 | |
39 | Ixrss int32 | |
40 | Idrss int32 | |
41 | Isrss int32 | |
42 | Minflt int32 | |
43 | Majflt int32 | |
44 | Nswap int32 | |
45 | Inblock int32 | |
46 | Oublock int32 | |
47 | Msgsnd int32 | |
48 | Msgrcv int32 | |
49 | Nsignals int32 | |
50 | Nvcsw int32 | |
51 | Nivcsw int32 | |
52 | } | |
53 | ||
54 | type Rlimit struct { | |
55 | Cur int64 | |
56 | Max int64 | |
57 | } | |
58 | ||
59 | type _Gid_t uint32 | |
60 | ||
61 | const ( | |
62 | S_IFMT = 0xf000 | |
63 | S_IFIFO = 0x1000 | |
64 | S_IFCHR = 0x2000 | |
65 | S_IFDIR = 0x4000 | |
66 | S_IFBLK = 0x6000 | |
67 | S_IFREG = 0x8000 | |
68 | S_IFLNK = 0xa000 | |
69 | S_IFSOCK = 0xc000 | |
70 | S_ISUID = 0x800 | |
71 | S_ISGID = 0x400 | |
72 | S_ISVTX = 0x200 | |
73 | S_IRUSR = 0x100 | |
74 | S_IWUSR = 0x80 | |
75 | S_IXUSR = 0x40 | |
76 | ) | |
77 | ||
78 | type Stat_t struct { | |
79 | Dev uint32 | |
80 | Ino uint32 | |
81 | Mode uint16 | |
82 | Nlink uint16 | |
83 | Uid uint32 | |
84 | Gid uint32 | |
85 | Rdev uint32 | |
86 | Atimespec Timespec | |
87 | Mtimespec Timespec | |
88 | Ctimespec Timespec | |
89 | Size int64 | |
90 | Blocks int64 | |
91 | Blksize uint32 | |
92 | Flags uint32 | |
93 | Gen uint32 | |
94 | Lspare int32 | |
95 | Birthtimespec Timespec | |
96 | } | |
97 | ||
98 | type Statfs_t struct { | |
99 | Version uint32 | |
100 | Type uint32 | |
101 | Flags uint64 | |
102 | Bsize uint64 | |
103 | Iosize uint64 | |
104 | Blocks uint64 | |
105 | Bfree uint64 | |
106 | Bavail int64 | |
107 | Files uint64 | |
108 | Ffree int64 | |
109 | Syncwrites uint64 | |
110 | Asyncwrites uint64 | |
111 | Syncreads uint64 | |
112 | Asyncreads uint64 | |
113 | Spare [10]uint64 | |
114 | Namemax uint32 | |
115 | Owner uint32 | |
116 | Fsid Fsid | |
117 | Charspare [80]int8 | |
118 | Fstypename [16]int8 | |
119 | Mntfromname [88]int8 | |
120 | Mntonname [88]int8 | |
121 | } | |
122 | ||
123 | type Flock_t struct { | |
124 | Start int64 | |
125 | Len int64 | |
126 | Pid int32 | |
127 | Type int16 | |
128 | Whence int16 | |
129 | Sysid int32 | |
130 | Pad_cgo_0 [4]byte | |
131 | } | |
132 | ||
133 | type Dirent struct { | |
134 | Fileno uint32 | |
135 | Reclen uint16 | |
136 | Type uint8 | |
137 | Namlen uint8 | |
138 | Name [256]int8 | |
139 | } | |
140 | ||
141 | type Fsid struct { | |
142 | Val [2]int32 | |
143 | } | |
144 | ||
145 | type RawSockaddrInet4 struct { | |
146 | Len uint8 | |
147 | Family uint8 | |
148 | Port uint16 | |
149 | Addr [4]byte /* in_addr */ | |
150 | Zero [8]int8 | |
151 | } | |
152 | ||
153 | type RawSockaddrInet6 struct { | |
154 | Len uint8 | |
155 | Family uint8 | |
156 | Port uint16 | |
157 | Flowinfo uint32 | |
158 | Addr [16]byte /* in6_addr */ | |
159 | Scope_id uint32 | |
160 | } | |
161 | ||
162 | type RawSockaddrUnix struct { | |
163 | Len uint8 | |
164 | Family uint8 | |
165 | Path [104]int8 | |
166 | } | |
167 | ||
168 | type RawSockaddrDatalink struct { | |
169 | Len uint8 | |
170 | Family uint8 | |
171 | Index uint16 | |
172 | Type uint8 | |
173 | Nlen uint8 | |
174 | Alen uint8 | |
175 | Slen uint8 | |
176 | Data [46]int8 | |
177 | } | |
178 | ||
179 | type RawSockaddr struct { | |
180 | Len uint8 | |
181 | Family uint8 | |
182 | Data [14]int8 | |
183 | } | |
184 | ||
185 | type RawSockaddrAny struct { | |
186 | Addr RawSockaddr | |
187 | Pad [92]int8 | |
188 | } | |
189 | ||
190 | type _Socklen uint32 | |
191 | ||
192 | type Linger struct { | |
193 | Onoff int32 | |
194 | Linger int32 | |
195 | } | |
196 | ||
197 | type Iovec struct { | |
198 | Base *byte | |
199 | Len uint32 | |
200 | } | |
201 | ||
202 | type IPMreq struct { | |
203 | Multiaddr [4]byte /* in_addr */ | |
204 | Interface [4]byte /* in_addr */ | |
205 | } | |
206 | ||
207 | type IPMreqn struct { | |
208 | Multiaddr [4]byte /* in_addr */ | |
209 | Address [4]byte /* in_addr */ | |
210 | Ifindex int32 | |
211 | } | |
212 | ||
213 | type IPv6Mreq struct { | |
214 | Multiaddr [16]byte /* in6_addr */ | |
215 | Interface uint32 | |
216 | } | |
217 | ||
218 | type Msghdr struct { | |
219 | Name *byte | |
220 | Namelen uint32 | |
221 | Iov *Iovec | |
222 | Iovlen int32 | |
223 | Control *byte | |
224 | Controllen uint32 | |
225 | Flags int32 | |
226 | } | |
227 | ||
228 | type Cmsghdr struct { | |
229 | Len uint32 | |
230 | Level int32 | |
231 | Type int32 | |
232 | } | |
233 | ||
234 | type Inet6Pktinfo struct { | |
235 | Addr [16]byte /* in6_addr */ | |
236 | Ifindex uint32 | |
237 | } | |
238 | ||
239 | type IPv6MTUInfo struct { | |
240 | Addr RawSockaddrInet6 | |
241 | Mtu uint32 | |
242 | } | |
243 | ||
244 | type ICMPv6Filter struct { | |
245 | Filt [8]uint32 | |
246 | } | |
247 | ||
248 | const ( | |
249 | SizeofSockaddrInet4 = 0x10 | |
250 | SizeofSockaddrInet6 = 0x1c | |
251 | SizeofSockaddrAny = 0x6c | |
252 | SizeofSockaddrUnix = 0x6a | |
253 | SizeofSockaddrDatalink = 0x36 | |
254 | SizeofLinger = 0x8 | |
255 | SizeofIPMreq = 0x8 | |
256 | SizeofIPMreqn = 0xc | |
257 | SizeofIPv6Mreq = 0x14 | |
258 | SizeofMsghdr = 0x1c | |
259 | SizeofCmsghdr = 0xc | |
260 | SizeofInet6Pktinfo = 0x14 | |
261 | SizeofIPv6MTUInfo = 0x20 | |
262 | SizeofICMPv6Filter = 0x20 | |
263 | ) | |
264 | ||
265 | const ( | |
266 | PTRACE_TRACEME = 0x0 | |
267 | PTRACE_CONT = 0x7 | |
268 | PTRACE_KILL = 0x8 | |
269 | ) | |
270 | ||
271 | type Kevent_t struct { | |
272 | Ident uint32 | |
273 | Filter int16 | |
274 | Flags uint16 | |
275 | Fflags uint32 | |
276 | Data int32 | |
277 | Udata *byte | |
278 | } | |
279 | ||
280 | type FdSet struct { | |
281 | X__fds_bits [32]uint32 | |
282 | } | |
283 | ||
284 | const ( | |
285 | sizeofIfMsghdr = 0x70 | |
286 | SizeofIfMsghdr = 0x70 | |
287 | sizeofIfData = 0x60 | |
288 | SizeofIfData = 0x60 | |
289 | SizeofIfaMsghdr = 0x14 | |
290 | SizeofIfmaMsghdr = 0x10 | |
291 | SizeofIfAnnounceMsghdr = 0x18 | |
292 | SizeofRtMsghdr = 0x5c | |
293 | SizeofRtMetrics = 0x38 | |
294 | ) | |
295 | ||
296 | type 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 | ||
307 | type IfMsghdr struct { | |
308 | Msglen uint16 | |
309 | Version uint8 | |
310 | Type uint8 | |
311 | Addrs int32 | |
312 | Flags int32 | |
313 | Index uint16 | |
314 | Pad_cgo_0 [2]byte | |
315 | Data IfData | |
316 | } | |
317 | ||
318 | type ifData struct { | |
319 | Type uint8 | |
320 | Physical uint8 | |
321 | Addrlen uint8 | |
322 | Hdrlen uint8 | |
323 | Link_state uint8 | |
324 | Vhid uint8 | |
325 | Baudrate_pf uint8 | |
326 | Datalen uint8 | |
327 | Mtu uint32 | |
328 | Metric uint32 | |
329 | Baudrate uint32 | |
330 | Ipackets uint32 | |
331 | Ierrors uint32 | |
332 | Opackets uint32 | |
333 | Oerrors uint32 | |
334 | Collisions uint32 | |
335 | Ibytes uint32 | |
336 | Obytes uint32 | |
337 | Imcasts uint32 | |
338 | Omcasts uint32 | |
339 | Iqdrops uint32 | |
340 | Noproto uint32 | |
341 | Hwassist uint64 | |
342 | Epoch int64 | |
343 | Lastchange Timeval | |
344 | } | |
345 | ||
346 | type IfData struct { | |
347 | Type uint8 | |
348 | Physical uint8 | |
349 | Addrlen uint8 | |
350 | Hdrlen uint8 | |
351 | Link_state uint8 | |
352 | Spare_char1 uint8 | |
353 | Spare_char2 uint8 | |
354 | Datalen uint8 | |
355 | Mtu uint32 | |
356 | Metric uint32 | |
357 | Baudrate uint32 | |
358 | Ipackets uint32 | |
359 | Ierrors uint32 | |
360 | Opackets uint32 | |
361 | Oerrors uint32 | |
362 | Collisions uint32 | |
363 | Ibytes uint32 | |
364 | Obytes uint32 | |
365 | Imcasts uint32 | |
366 | Omcasts uint32 | |
367 | Iqdrops uint32 | |
368 | Noproto uint32 | |
369 | Hwassist uint32 | |
370 | Pad_cgo_0 [4]byte | |
371 | Epoch int64 | |
372 | Lastchange Timeval | |
373 | } | |
374 | ||
375 | type IfaMsghdr struct { | |
376 | Msglen uint16 | |
377 | Version uint8 | |
378 | Type uint8 | |
379 | Addrs int32 | |
380 | Flags int32 | |
381 | Index uint16 | |
382 | Pad_cgo_0 [2]byte | |
383 | Metric int32 | |
384 | } | |
385 | ||
386 | type IfmaMsghdr struct { | |
387 | Msglen uint16 | |
388 | Version uint8 | |
389 | Type uint8 | |
390 | Addrs int32 | |
391 | Flags int32 | |
392 | Index uint16 | |
393 | Pad_cgo_0 [2]byte | |
394 | } | |
395 | ||
396 | type IfAnnounceMsghdr struct { | |
397 | Msglen uint16 | |
398 | Version uint8 | |
399 | Type uint8 | |
400 | Index uint16 | |
401 | Name [16]int8 | |
402 | What uint16 | |
403 | } | |
404 | ||
405 | type RtMsghdr struct { | |
406 | Msglen uint16 | |
407 | Version uint8 | |
408 | Type uint8 | |
409 | Index uint16 | |
410 | Pad_cgo_0 [2]byte | |
411 | Flags int32 | |
412 | Addrs int32 | |
413 | Pid int32 | |
414 | Seq int32 | |
415 | Errno int32 | |
416 | Fmask int32 | |
417 | Inits uint32 | |
418 | Rmx RtMetrics | |
419 | } | |
420 | ||
421 | type RtMetrics struct { | |
422 | Locks uint32 | |
423 | Mtu uint32 | |
424 | Hopcount uint32 | |
425 | Expire uint32 | |
426 | Recvpipe uint32 | |
427 | Sendpipe uint32 | |
428 | Ssthresh uint32 | |
429 | Rtt uint32 | |
430 | Rttvar uint32 | |
431 | Pksent uint32 | |
432 | Weight uint32 | |
433 | Filler [3]uint32 | |
434 | } | |
435 | ||
436 | const ( | |
437 | SizeofBpfVersion = 0x4 | |
438 | SizeofBpfStat = 0x8 | |
439 | SizeofBpfZbuf = 0xc | |
440 | SizeofBpfProgram = 0x8 | |
441 | SizeofBpfInsn = 0x8 | |
442 | SizeofBpfHdr = 0x20 | |
443 | SizeofBpfZbufHeader = 0x20 | |
444 | ) | |
445 | ||
446 | type BpfVersion struct { | |
447 | Major uint16 | |
448 | Minor uint16 | |
449 | } | |
450 | ||
451 | type BpfStat struct { | |
452 | Recv uint32 | |
453 | Drop uint32 | |
454 | } | |
455 | ||
456 | type BpfZbuf struct { | |
457 | Bufa *byte | |
458 | Bufb *byte | |
459 | Buflen uint32 | |
460 | } | |
461 | ||
462 | type BpfProgram struct { | |
463 | Len uint32 | |
464 | Insns *BpfInsn | |
465 | } | |
466 | ||
467 | type BpfInsn struct { | |
468 | Code uint16 | |
469 | Jt uint8 | |
470 | Jf uint8 | |
471 | K uint32 | |
472 | } | |
473 | ||
474 | type BpfHdr struct { | |
475 | Tstamp Timeval | |
476 | Caplen uint32 | |
477 | Datalen uint32 | |
478 | Hdrlen uint16 | |
479 | Pad_cgo_0 [6]byte | |
480 | } | |
481 | ||
482 | type BpfZbufHeader struct { | |
483 | Kernel_gen uint32 | |
484 | Kernel_len uint32 | |
485 | User_gen uint32 | |
486 | X_bzh_pad [5]uint32 | |
487 | } | |
488 | ||
489 | type Termios struct { | |
490 | Iflag uint32 | |
491 | Oflag uint32 | |
492 | Cflag uint32 | |
493 | Lflag uint32 | |
494 | Cc [20]uint8 | |
495 | Ispeed uint32 | |
496 | Ospeed uint32 | |
497 | } |