OSDN Git Service

new repo
[bytom/vapor.git] / vendor / golang.org / x / sys / unix / ztypes_openbsd_amd64.go
1 // Created by cgo -godefs - DO NOT EDIT
2 // cgo -godefs types_openbsd.go
3
4 // +build amd64,openbsd
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 int64
31 }
32
33 type Rusage struct {
34         Utime    Timeval
35         Stime    Timeval
36         Maxrss   int64
37         Ixrss    int64
38         Idrss    int64
39         Isrss    int64
40         Minflt   int64
41         Majflt   int64
42         Nswap    int64
43         Inblock  int64
44         Oublock  int64
45         Msgsnd   int64
46         Msgrcv   int64
47         Nsignals int64
48         Nvcsw    int64
49         Nivcsw   int64
50 }
51
52 type Rlimit struct {
53         Cur uint64
54         Max uint64
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         Mode           uint32
78         Dev            int32
79         Ino            uint64
80         Nlink          uint32
81         Uid            uint32
82         Gid            uint32
83         Rdev           int32
84         Atim           Timespec
85         Mtim           Timespec
86         Ctim           Timespec
87         Size           int64
88         Blocks         int64
89         Blksize        uint32
90         Flags          uint32
91         Gen            uint32
92         Pad_cgo_0      [4]byte
93         X__st_birthtim Timespec
94 }
95
96 type Statfs_t struct {
97         F_flags       uint32
98         F_bsize       uint32
99         F_iosize      uint32
100         Pad_cgo_0     [4]byte
101         F_blocks      uint64
102         F_bfree       uint64
103         F_bavail      int64
104         F_files       uint64
105         F_ffree       uint64
106         F_favail      int64
107         F_syncwrites  uint64
108         F_syncreads   uint64
109         F_asyncwrites uint64
110         F_asyncreads  uint64
111         F_fsid        Fsid
112         F_namemax     uint32
113         F_owner       uint32
114         F_ctime       uint64
115         F_fstypename  [16]int8
116         F_mntonname   [90]int8
117         F_mntfromname [90]int8
118         F_mntfromspec [90]int8
119         Pad_cgo_1     [2]byte
120         Mount_info    [160]byte
121 }
122
123 type Flock_t struct {
124         Start  int64
125         Len    int64
126         Pid    int32
127         Type   int16
128         Whence int16
129 }
130
131 type Dirent struct {
132         Fileno       uint64
133         Off          int64
134         Reclen       uint16
135         Type         uint8
136         Namlen       uint8
137         X__d_padding [4]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   [24]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  uint64
200 }
201
202 type IPMreq struct {
203         Multiaddr [4]byte /* in_addr */
204         Interface [4]byte /* in_addr */
205 }
206
207 type IPv6Mreq struct {
208         Multiaddr [16]byte /* in6_addr */
209         Interface uint32
210 }
211
212 type Msghdr struct {
213         Name       *byte
214         Namelen    uint32
215         Pad_cgo_0  [4]byte
216         Iov        *Iovec
217         Iovlen     uint32
218         Pad_cgo_1  [4]byte
219         Control    *byte
220         Controllen uint32
221         Flags      int32
222 }
223
224 type Cmsghdr struct {
225         Len   uint32
226         Level int32
227         Type  int32
228 }
229
230 type Inet6Pktinfo struct {
231         Addr    [16]byte /* in6_addr */
232         Ifindex uint32
233 }
234
235 type IPv6MTUInfo struct {
236         Addr RawSockaddrInet6
237         Mtu  uint32
238 }
239
240 type ICMPv6Filter struct {
241         Filt [8]uint32
242 }
243
244 const (
245         SizeofSockaddrInet4    = 0x10
246         SizeofSockaddrInet6    = 0x1c
247         SizeofSockaddrAny      = 0x6c
248         SizeofSockaddrUnix     = 0x6a
249         SizeofSockaddrDatalink = 0x20
250         SizeofLinger           = 0x8
251         SizeofIPMreq           = 0x8
252         SizeofIPv6Mreq         = 0x14
253         SizeofMsghdr           = 0x30
254         SizeofCmsghdr          = 0xc
255         SizeofInet6Pktinfo     = 0x14
256         SizeofIPv6MTUInfo      = 0x20
257         SizeofICMPv6Filter     = 0x20
258 )
259
260 const (
261         PTRACE_TRACEME = 0x0
262         PTRACE_CONT    = 0x7
263         PTRACE_KILL    = 0x8
264 )
265
266 type Kevent_t struct {
267         Ident  uint64
268         Filter int16
269         Flags  uint16
270         Fflags uint32
271         Data   int64
272         Udata  *byte
273 }
274
275 type FdSet struct {
276         Bits [32]uint32
277 }
278
279 const (
280         SizeofIfMsghdr         = 0xf8
281         SizeofIfData           = 0xe0
282         SizeofIfaMsghdr        = 0x18
283         SizeofIfAnnounceMsghdr = 0x1a
284         SizeofRtMsghdr         = 0x60
285         SizeofRtMetrics        = 0x38
286 )
287
288 type IfMsghdr struct {
289         Msglen  uint16
290         Version uint8
291         Type    uint8
292         Hdrlen  uint16
293         Index   uint16
294         Tableid uint16
295         Pad1    uint8
296         Pad2    uint8
297         Addrs   int32
298         Flags   int32
299         Xflags  int32
300         Data    IfData
301 }
302
303 type IfData struct {
304         Type         uint8
305         Addrlen      uint8
306         Hdrlen       uint8
307         Link_state   uint8
308         Mtu          uint32
309         Metric       uint32
310         Pad          uint32
311         Baudrate     uint64
312         Ipackets     uint64
313         Ierrors      uint64
314         Opackets     uint64
315         Oerrors      uint64
316         Collisions   uint64
317         Ibytes       uint64
318         Obytes       uint64
319         Imcasts      uint64
320         Omcasts      uint64
321         Iqdrops      uint64
322         Noproto      uint64
323         Capabilities uint32
324         Pad_cgo_0    [4]byte
325         Lastchange   Timeval
326         Mclpool      [7]Mclpool
327         Pad_cgo_1    [4]byte
328 }
329
330 type IfaMsghdr struct {
331         Msglen  uint16
332         Version uint8
333         Type    uint8
334         Hdrlen  uint16
335         Index   uint16
336         Tableid uint16
337         Pad1    uint8
338         Pad2    uint8
339         Addrs   int32
340         Flags   int32
341         Metric  int32
342 }
343
344 type IfAnnounceMsghdr struct {
345         Msglen  uint16
346         Version uint8
347         Type    uint8
348         Hdrlen  uint16
349         Index   uint16
350         What    uint16
351         Name    [16]int8
352 }
353
354 type RtMsghdr struct {
355         Msglen   uint16
356         Version  uint8
357         Type     uint8
358         Hdrlen   uint16
359         Index    uint16
360         Tableid  uint16
361         Priority uint8
362         Mpls     uint8
363         Addrs    int32
364         Flags    int32
365         Fmask    int32
366         Pid      int32
367         Seq      int32
368         Errno    int32
369         Inits    uint32
370         Rmx      RtMetrics
371 }
372
373 type RtMetrics struct {
374         Pksent   uint64
375         Expire   int64
376         Locks    uint32
377         Mtu      uint32
378         Refcnt   uint32
379         Hopcount uint32
380         Recvpipe uint32
381         Sendpipe uint32
382         Ssthresh uint32
383         Rtt      uint32
384         Rttvar   uint32
385         Pad      uint32
386 }
387
388 type Mclpool struct {
389         Grown int32
390         Alive uint16
391         Hwm   uint16
392         Cwm   uint16
393         Lwm   uint16
394 }
395
396 const (
397         SizeofBpfVersion = 0x4
398         SizeofBpfStat    = 0x8
399         SizeofBpfProgram = 0x10
400         SizeofBpfInsn    = 0x8
401         SizeofBpfHdr     = 0x14
402 )
403
404 type BpfVersion struct {
405         Major uint16
406         Minor uint16
407 }
408
409 type BpfStat struct {
410         Recv uint32
411         Drop uint32
412 }
413
414 type BpfProgram struct {
415         Len       uint32
416         Pad_cgo_0 [4]byte
417         Insns     *BpfInsn
418 }
419
420 type BpfInsn struct {
421         Code uint16
422         Jt   uint8
423         Jf   uint8
424         K    uint32
425 }
426
427 type BpfHdr struct {
428         Tstamp    BpfTimeval
429         Caplen    uint32
430         Datalen   uint32
431         Hdrlen    uint16
432         Pad_cgo_0 [2]byte
433 }
434
435 type BpfTimeval struct {
436         Sec  uint32
437         Usec uint32
438 }
439
440 type Termios struct {
441         Iflag  uint32
442         Oflag  uint32
443         Cflag  uint32
444         Lflag  uint32
445         Cc     [20]uint8
446         Ispeed int32
447         Ospeed int32
448 }
449
450 const (
451         AT_FDCWD            = -0x64
452         AT_SYMLINK_NOFOLLOW = 0x2
453 )