equal
deleted
inserted
replaced
30 type Timeval struct { |
30 type Timeval struct { |
31 Sec int64 |
31 Sec int64 |
32 Usec int32 |
32 Usec int32 |
33 _ [4]byte |
33 _ [4]byte |
34 } |
34 } |
|
35 |
|
36 type Time_t int64 |
35 |
37 |
36 type Rusage struct { |
38 type Rusage struct { |
37 Utime Timeval |
39 Utime Timeval |
38 Stime Timeval |
40 Stime Timeval |
39 Maxrss int32 |
41 Maxrss int32 |
82 Blocks int64 |
84 Blocks int64 |
83 Blksize int32 |
85 Blksize int32 |
84 Flags uint32 |
86 Flags uint32 |
85 Gen uint64 |
87 Gen uint64 |
86 Spare [10]uint64 |
88 Spare [10]uint64 |
87 } |
|
88 |
|
89 type stat_freebsd11_t struct { |
|
90 Dev uint32 |
|
91 Ino uint32 |
|
92 Mode uint16 |
|
93 Nlink uint16 |
|
94 Uid uint32 |
|
95 Gid uint32 |
|
96 Rdev uint32 |
|
97 Atim Timespec |
|
98 Mtim Timespec |
|
99 Ctim Timespec |
|
100 Size int64 |
|
101 Blocks int64 |
|
102 Blksize int32 |
|
103 Flags uint32 |
|
104 Gen uint32 |
|
105 Lspare int32 |
|
106 Btim Timespec |
|
107 } |
89 } |
108 |
90 |
109 type Statfs_t struct { |
91 type Statfs_t struct { |
110 Version uint32 |
92 Version uint32 |
111 Type uint32 |
93 Type uint32 |
129 Fstypename [16]byte |
111 Fstypename [16]byte |
130 Mntfromname [1024]byte |
112 Mntfromname [1024]byte |
131 Mntonname [1024]byte |
113 Mntonname [1024]byte |
132 } |
114 } |
133 |
115 |
134 type statfs_freebsd11_t struct { |
|
135 Version uint32 |
|
136 Type uint32 |
|
137 Flags uint64 |
|
138 Bsize uint64 |
|
139 Iosize uint64 |
|
140 Blocks uint64 |
|
141 Bfree uint64 |
|
142 Bavail int64 |
|
143 Files uint64 |
|
144 Ffree int64 |
|
145 Syncwrites uint64 |
|
146 Asyncwrites uint64 |
|
147 Syncreads uint64 |
|
148 Asyncreads uint64 |
|
149 Spare [10]uint64 |
|
150 Namemax uint32 |
|
151 Owner uint32 |
|
152 Fsid Fsid |
|
153 Charspare [80]int8 |
|
154 Fstypename [16]byte |
|
155 Mntfromname [88]byte |
|
156 Mntonname [88]byte |
|
157 } |
|
158 |
|
159 type Flock_t struct { |
116 type Flock_t struct { |
160 Start int64 |
117 Start int64 |
161 Len int64 |
118 Len int64 |
162 Pid int32 |
119 Pid int32 |
163 Type int16 |
120 Type int16 |
172 Reclen uint16 |
129 Reclen uint16 |
173 Type uint8 |
130 Type uint8 |
174 Pad0 uint8 |
131 Pad0 uint8 |
175 Namlen uint16 |
132 Namlen uint16 |
176 Pad1 uint16 |
133 Pad1 uint16 |
177 Name [256]int8 |
|
178 } |
|
179 |
|
180 type dirent_freebsd11 struct { |
|
181 Fileno uint32 |
|
182 Reclen uint16 |
|
183 Type uint8 |
|
184 Namlen uint8 |
|
185 Name [256]int8 |
134 Name [256]int8 |
186 } |
135 } |
187 |
136 |
188 type Fsid struct { |
137 type Fsid struct { |
189 Val [2]int32 |
138 Val [2]int32 |
331 SizeofIPv6MTUInfo = 0x20 |
280 SizeofIPv6MTUInfo = 0x20 |
332 SizeofICMPv6Filter = 0x20 |
281 SizeofICMPv6Filter = 0x20 |
333 ) |
282 ) |
334 |
283 |
335 const ( |
284 const ( |
336 PTRACE_ATTACH = 0xa |
285 PTRACE_TRACEME = 0x0 |
337 PTRACE_CONT = 0x7 |
286 PTRACE_CONT = 0x7 |
338 PTRACE_DETACH = 0xb |
287 PTRACE_KILL = 0x8 |
339 PTRACE_GETFPREGS = 0x23 |
|
340 PTRACE_GETFSBASE = 0x47 |
|
341 PTRACE_GETLWPLIST = 0xf |
|
342 PTRACE_GETNUMLWPS = 0xe |
|
343 PTRACE_GETREGS = 0x21 |
|
344 PTRACE_GETXSTATE = 0x45 |
|
345 PTRACE_IO = 0xc |
|
346 PTRACE_KILL = 0x8 |
|
347 PTRACE_LWPEVENTS = 0x18 |
|
348 PTRACE_LWPINFO = 0xd |
|
349 PTRACE_SETFPREGS = 0x24 |
|
350 PTRACE_SETREGS = 0x22 |
|
351 PTRACE_SINGLESTEP = 0x9 |
|
352 PTRACE_TRACEME = 0x0 |
|
353 ) |
|
354 |
|
355 const ( |
|
356 PIOD_READ_D = 0x1 |
|
357 PIOD_WRITE_D = 0x2 |
|
358 PIOD_READ_I = 0x3 |
|
359 PIOD_WRITE_I = 0x4 |
|
360 ) |
|
361 |
|
362 const ( |
|
363 PL_FLAG_BORN = 0x100 |
|
364 PL_FLAG_EXITED = 0x200 |
|
365 PL_FLAG_SI = 0x20 |
|
366 ) |
|
367 |
|
368 const ( |
|
369 TRAP_BRKPT = 0x1 |
|
370 TRAP_TRACE = 0x2 |
|
371 ) |
288 ) |
372 |
289 |
373 type PtraceLwpInfoStruct struct { |
290 type PtraceLwpInfoStruct struct { |
374 Lwpid int32 |
291 Lwpid int32 |
375 Event int32 |
292 Event int32 |
382 Syscall_code uint32 |
299 Syscall_code uint32 |
383 Syscall_narg uint32 |
300 Syscall_narg uint32 |
384 } |
301 } |
385 |
302 |
386 type __Siginfo struct { |
303 type __Siginfo struct { |
387 Signo int32 |
304 Signo int32 |
388 Errno int32 |
305 Errno int32 |
389 Code int32 |
306 Code int32 |
390 Pid int32 |
307 Pid int32 |
391 Uid uint32 |
308 Uid uint32 |
392 Status int32 |
309 Status int32 |
393 Addr *byte |
310 Addr *byte |
394 Value [4]byte |
311 Value [4]byte |
395 X_reason [32]byte |
312 _ [32]byte |
396 } |
313 } |
397 |
314 |
398 type Sigset_t struct { |
315 type Sigset_t struct { |
399 Val [4]uint32 |
316 Val [4]uint32 |
400 } |
317 } |
401 |
318 |
402 type Reg struct { |
319 type Reg struct { |
403 R [13]uint32 |
320 R [13]uint32 |
404 R_sp uint32 |
321 Sp uint32 |
405 R_lr uint32 |
322 Lr uint32 |
406 R_pc uint32 |
323 Pc uint32 |
407 R_cpsr uint32 |
324 Cpsr uint32 |
408 } |
325 } |
409 |
326 |
410 type FpReg struct { |
327 type FpReg struct { |
411 Fpr_fpsr uint32 |
328 Fpsr uint32 |
412 Fpr [8][3]uint32 |
329 Fpr [8]FpExtendedPrecision |
|
330 } |
|
331 |
|
332 type FpExtendedPrecision struct { |
|
333 Exponent uint32 |
|
334 Mantissa_hi uint32 |
|
335 Mantissa_lo uint32 |
413 } |
336 } |
414 |
337 |
415 type PtraceIoDesc struct { |
338 type PtraceIoDesc struct { |
416 Op int32 |
339 Op int32 |
417 Offs *byte |
340 Offs *byte |
422 type Kevent_t struct { |
345 type Kevent_t struct { |
423 Ident uint32 |
346 Ident uint32 |
424 Filter int16 |
347 Filter int16 |
425 Flags uint16 |
348 Flags uint16 |
426 Fflags uint32 |
349 Fflags uint32 |
427 Data int32 |
350 _ [4]byte |
|
351 Data int64 |
428 Udata *byte |
352 Udata *byte |
|
353 _ [4]byte |
|
354 Ext [4]uint64 |
429 } |
355 } |
430 |
356 |
431 type FdSet struct { |
357 type FdSet struct { |
432 Bits [32]uint32 |
358 Bits [32]uint32 |
433 } |
359 } |
449 Version uint8 |
375 Version uint8 |
450 Type uint8 |
376 Type uint8 |
451 Addrs int32 |
377 Addrs int32 |
452 Flags int32 |
378 Flags int32 |
453 Index uint16 |
379 Index uint16 |
454 _ [2]byte |
380 _ uint16 |
455 Data ifData |
381 Data ifData |
456 } |
382 } |
457 |
383 |
458 type IfMsghdr struct { |
384 type IfMsghdr struct { |
459 Msglen uint16 |
385 Msglen uint16 |
460 Version uint8 |
386 Version uint8 |
461 Type uint8 |
387 Type uint8 |
462 Addrs int32 |
388 Addrs int32 |
463 Flags int32 |
389 Flags int32 |
464 Index uint16 |
390 Index uint16 |
465 _ [2]byte |
|
466 Data IfData |
391 Data IfData |
467 } |
392 } |
468 |
393 |
469 type ifData struct { |
394 type ifData struct { |
470 Type uint8 |
395 Type uint8 |
528 Version uint8 |
453 Version uint8 |
529 Type uint8 |
454 Type uint8 |
530 Addrs int32 |
455 Addrs int32 |
531 Flags int32 |
456 Flags int32 |
532 Index uint16 |
457 Index uint16 |
533 _ [2]byte |
458 _ uint16 |
534 Metric int32 |
459 Metric int32 |
535 } |
460 } |
536 |
461 |
537 type IfmaMsghdr struct { |
462 type IfmaMsghdr struct { |
538 Msglen uint16 |
463 Msglen uint16 |
539 Version uint8 |
464 Version uint8 |
540 Type uint8 |
465 Type uint8 |
541 Addrs int32 |
466 Addrs int32 |
542 Flags int32 |
467 Flags int32 |
543 Index uint16 |
468 Index uint16 |
544 _ [2]byte |
469 _ uint16 |
545 } |
470 } |
546 |
471 |
547 type IfAnnounceMsghdr struct { |
472 type IfAnnounceMsghdr struct { |
548 Msglen uint16 |
473 Msglen uint16 |
549 Version uint8 |
474 Version uint8 |
556 type RtMsghdr struct { |
481 type RtMsghdr struct { |
557 Msglen uint16 |
482 Msglen uint16 |
558 Version uint8 |
483 Version uint8 |
559 Type uint8 |
484 Type uint8 |
560 Index uint16 |
485 Index uint16 |
561 _ [2]byte |
486 _ uint16 |
562 Flags int32 |
487 Flags int32 |
563 Addrs int32 |
488 Addrs int32 |
564 Pid int32 |
489 Pid int32 |
565 Seq int32 |
490 Seq int32 |
566 Errno int32 |
491 Errno int32 |