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