OSDN Git Service

new repo
[bytom/vapor.git] / vendor / golang.org / x / sys / unix / ztypes_freebsd_386.go
1 // cgo -godefs types_freebsd.go | go run mkpost.go
2 // Code generated by the command above; see README.md. DO NOT EDIT.
3
4 // +build 386,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  int32
25         Nsec int32
26 }
27
28 type Timeval struct {
29         Sec  int32
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 int64
54         Max int64
55 }
56
57 type _Gid_t uint32
58
59 const (
60         S_IFMT   = 0xf000
61         S_IFIFO  = 0x1000
62         S_IFCHR  = 0x2000
63         S_IFDIR  = 0x4000
64         S_IFBLK  = 0x6000
65         S_IFREG  = 0x8000
66         S_IFLNK  = 0xa000
67         S_IFSOCK = 0xc000
68         S_ISUID  = 0x800
69         S_ISGID  = 0x400
70         S_ISVTX  = 0x200
71         S_IRUSR  = 0x100
72         S_IWUSR  = 0x80
73         S_IXUSR  = 0x40
74 )
75
76 type Stat_t struct {
77         Dev           uint32
78         Ino           uint32
79         Mode          uint16
80         Nlink         uint16
81         Uid           uint32
82         Gid           uint32
83         Rdev          uint32
84         Atimespec     Timespec
85         Mtimespec     Timespec
86         Ctimespec     Timespec
87         Size          int64
88         Blocks        int64
89         Blksize       int32
90         Flags         uint32
91         Gen           uint32
92         Lspare        int32
93         Birthtimespec Timespec
94         Pad_cgo_0     [8]byte
95 }
96
97 type Statfs_t struct {
98         Version     uint32
99         Type        uint32
100         Flags       uint64
101         Bsize       uint64
102         Iosize      uint64
103         Blocks      uint64
104         Bfree       uint64
105         Bavail      int64
106         Files       uint64
107         Ffree       int64
108         Syncwrites  uint64
109         Asyncwrites uint64
110         Syncreads   uint64
111         Asyncreads  uint64
112         Spare       [10]uint64
113         Namemax     uint32
114         Owner       uint32
115         Fsid        Fsid
116         Charspare   [80]int8
117         Fstypename  [16]int8
118         Mntfromname [88]int8
119         Mntonname   [88]int8
120 }
121
122 type Flock_t struct {
123         Start  int64
124         Len    int64
125         Pid    int32
126         Type   int16
127         Whence int16
128         Sysid  int32
129 }
130
131 type Dirent struct {
132         Fileno uint32
133         Reclen uint16
134         Type   uint8
135         Namlen uint8
136         Name   [256]int8
137 }
138
139 type Fsid struct {
140         Val [2]int32
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   [46]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  uint32
207 }
208
209 type IPMreq struct {
210         Multiaddr [4]byte /* in_addr */
211         Interface [4]byte /* in_addr */
212 }
213
214 type IPMreqn struct {
215         Multiaddr [4]byte /* in_addr */
216         Address   [4]byte /* in_addr */
217         Ifindex   int32
218 }
219
220 type IPv6Mreq struct {
221         Multiaddr [16]byte /* in6_addr */
222         Interface uint32
223 }
224
225 type Msghdr struct {
226         Name       *byte
227         Namelen    uint32
228         Iov        *Iovec
229         Iovlen     int32
230         Control    *byte
231         Controllen uint32
232         Flags      int32
233 }
234
235 type Cmsghdr struct {
236         Len   uint32
237         Level int32
238         Type  int32
239 }
240
241 type Inet6Pktinfo struct {
242         Addr    [16]byte /* in6_addr */
243         Ifindex uint32
244 }
245
246 type IPv6MTUInfo struct {
247         Addr RawSockaddrInet6
248         Mtu  uint32
249 }
250
251 type ICMPv6Filter struct {
252         Filt [8]uint32
253 }
254
255 const (
256         SizeofSockaddrInet4    = 0x10
257         SizeofSockaddrInet6    = 0x1c
258         SizeofSockaddrAny      = 0x6c
259         SizeofSockaddrUnix     = 0x6a
260         SizeofSockaddrDatalink = 0x36
261         SizeofLinger           = 0x8
262         SizeofIPMreq           = 0x8
263         SizeofIPMreqn          = 0xc
264         SizeofIPv6Mreq         = 0x14
265         SizeofMsghdr           = 0x1c
266         SizeofCmsghdr          = 0xc
267         SizeofInet6Pktinfo     = 0x14
268         SizeofIPv6MTUInfo      = 0x20
269         SizeofICMPv6Filter     = 0x20
270 )
271
272 const (
273         PTRACE_TRACEME = 0x0
274         PTRACE_CONT    = 0x7
275         PTRACE_KILL    = 0x8
276 )
277
278 type Kevent_t struct {
279         Ident  uint32
280         Filter int16
281         Flags  uint16
282         Fflags uint32
283         Data   int32
284         Udata  *byte
285 }
286
287 type FdSet struct {
288         X__fds_bits [32]uint32
289 }
290
291 const (
292         sizeofIfMsghdr         = 0xa8
293         SizeofIfMsghdr         = 0x60
294         sizeofIfData           = 0x98
295         SizeofIfData           = 0x50
296         SizeofIfaMsghdr        = 0x14
297         SizeofIfmaMsghdr       = 0x10
298         SizeofIfAnnounceMsghdr = 0x18
299         SizeofRtMsghdr         = 0x5c
300         SizeofRtMetrics        = 0x38
301 )
302
303 type ifMsghdr struct {
304         Msglen    uint16
305         Version   uint8
306         Type      uint8
307         Addrs     int32
308         Flags     int32
309         Index     uint16
310         Pad_cgo_0 [2]byte
311         Data      ifData
312 }
313
314 type IfMsghdr struct {
315         Msglen    uint16
316         Version   uint8
317         Type      uint8
318         Addrs     int32
319         Flags     int32
320         Index     uint16
321         Pad_cgo_0 [2]byte
322         Data      IfData
323 }
324
325 type ifData struct {
326         Type              uint8
327         Physical          uint8
328         Addrlen           uint8
329         Hdrlen            uint8
330         Link_state        uint8
331         Vhid              uint8
332         Datalen           uint16
333         Mtu               uint32
334         Metric            uint32
335         Baudrate          uint64
336         Ipackets          uint64
337         Ierrors           uint64
338         Opackets          uint64
339         Oerrors           uint64
340         Collisions        uint64
341         Ibytes            uint64
342         Obytes            uint64
343         Imcasts           uint64
344         Omcasts           uint64
345         Iqdrops           uint64
346         Oqdrops           uint64
347         Noproto           uint64
348         Hwassist          uint64
349         X__ifi_epoch      [8]byte
350         X__ifi_lastchange [16]byte
351 }
352
353 type IfData struct {
354         Type        uint8
355         Physical    uint8
356         Addrlen     uint8
357         Hdrlen      uint8
358         Link_state  uint8
359         Spare_char1 uint8
360         Spare_char2 uint8
361         Datalen     uint8
362         Mtu         uint32
363         Metric      uint32
364         Baudrate    uint32
365         Ipackets    uint32
366         Ierrors     uint32
367         Opackets    uint32
368         Oerrors     uint32
369         Collisions  uint32
370         Ibytes      uint32
371         Obytes      uint32
372         Imcasts     uint32
373         Omcasts     uint32
374         Iqdrops     uint32
375         Noproto     uint32
376         Hwassist    uint32
377         Epoch       int32
378         Lastchange  Timeval
379 }
380
381 type IfaMsghdr struct {
382         Msglen    uint16
383         Version   uint8
384         Type      uint8
385         Addrs     int32
386         Flags     int32
387         Index     uint16
388         Pad_cgo_0 [2]byte
389         Metric    int32
390 }
391
392 type IfmaMsghdr struct {
393         Msglen    uint16
394         Version   uint8
395         Type      uint8
396         Addrs     int32
397         Flags     int32
398         Index     uint16
399         Pad_cgo_0 [2]byte
400 }
401
402 type IfAnnounceMsghdr struct {
403         Msglen  uint16
404         Version uint8
405         Type    uint8
406         Index   uint16
407         Name    [16]int8
408         What    uint16
409 }
410
411 type RtMsghdr struct {
412         Msglen    uint16
413         Version   uint8
414         Type      uint8
415         Index     uint16
416         Pad_cgo_0 [2]byte
417         Flags     int32
418         Addrs     int32
419         Pid       int32
420         Seq       int32
421         Errno     int32
422         Fmask     int32
423         Inits     uint32
424         Rmx       RtMetrics
425 }
426
427 type RtMetrics struct {
428         Locks    uint32
429         Mtu      uint32
430         Hopcount uint32
431         Expire   uint32
432         Recvpipe uint32
433         Sendpipe uint32
434         Ssthresh uint32
435         Rtt      uint32
436         Rttvar   uint32
437         Pksent   uint32
438         Weight   uint32
439         Filler   [3]uint32
440 }
441
442 const (
443         SizeofBpfVersion    = 0x4
444         SizeofBpfStat       = 0x8
445         SizeofBpfZbuf       = 0xc
446         SizeofBpfProgram    = 0x8
447         SizeofBpfInsn       = 0x8
448         SizeofBpfHdr        = 0x14
449         SizeofBpfZbufHeader = 0x20
450 )
451
452 type BpfVersion struct {
453         Major uint16
454         Minor uint16
455 }
456
457 type BpfStat struct {
458         Recv uint32
459         Drop uint32
460 }
461
462 type BpfZbuf struct {
463         Bufa   *byte
464         Bufb   *byte
465         Buflen uint32
466 }
467
468 type BpfProgram struct {
469         Len   uint32
470         Insns *BpfInsn
471 }
472
473 type BpfInsn struct {
474         Code uint16
475         Jt   uint8
476         Jf   uint8
477         K    uint32
478 }
479
480 type BpfHdr struct {
481         Tstamp    Timeval
482         Caplen    uint32
483         Datalen   uint32
484         Hdrlen    uint16
485         Pad_cgo_0 [2]byte
486 }
487
488 type BpfZbufHeader struct {
489         Kernel_gen uint32
490         Kernel_len uint32
491         User_gen   uint32
492         X_bzh_pad  [5]uint32
493 }
494
495 type Termios struct {
496         Iflag  uint32
497         Oflag  uint32
498         Cflag  uint32
499         Lflag  uint32
500         Cc     [20]uint8
501         Ispeed uint32
502         Ospeed uint32
503 }
504
505 type Winsize struct {
506         Row    uint16
507         Col    uint16
508         Xpixel uint16
509         Ypixel uint16
510 }
511
512 const (
513         AT_FDCWD            = -0x64
514         AT_REMOVEDIR        = 0x800
515         AT_SYMLINK_FOLLOW   = 0x400
516         AT_SYMLINK_NOFOLLOW = 0x200
517 )
518
519 type CapRights struct {
520         Rights [2]uint64
521 }