equal
deleted
inserted
replaced
56 } |
56 } |
57 |
57 |
58 type _Gid_t uint32 |
58 type _Gid_t uint32 |
59 |
59 |
60 type Stat_t struct { |
60 type Stat_t struct { |
61 Mode uint32 |
61 Mode uint32 |
62 Dev int32 |
62 Dev int32 |
63 Ino uint64 |
63 Ino uint64 |
64 Nlink uint32 |
64 Nlink uint32 |
65 Uid uint32 |
65 Uid uint32 |
66 Gid uint32 |
66 Gid uint32 |
67 Rdev int32 |
67 Rdev int32 |
68 Atim Timespec |
68 Atim Timespec |
69 Mtim Timespec |
69 Mtim Timespec |
70 Ctim Timespec |
70 Ctim Timespec |
71 Size int64 |
71 Size int64 |
72 Blocks int64 |
72 Blocks int64 |
73 Blksize uint32 |
73 Blksize int32 |
74 Flags uint32 |
74 Flags uint32 |
75 Gen uint32 |
75 Gen uint32 |
76 X__st_birthtim Timespec |
76 _ Timespec |
77 } |
77 } |
78 |
78 |
79 type Statfs_t struct { |
79 type Statfs_t struct { |
80 F_flags uint32 |
80 F_flags uint32 |
81 F_bsize uint32 |
81 F_bsize uint32 |
96 F_ctime uint64 |
96 F_ctime uint64 |
97 F_fstypename [16]byte |
97 F_fstypename [16]byte |
98 F_mntonname [90]byte |
98 F_mntonname [90]byte |
99 F_mntfromname [90]byte |
99 F_mntfromname [90]byte |
100 F_mntfromspec [90]byte |
100 F_mntfromspec [90]byte |
101 Pad_cgo_0 [2]byte |
101 _ [2]byte |
102 Mount_info [160]byte |
102 Mount_info [160]byte |
103 } |
103 } |
104 |
104 |
105 type Flock_t struct { |
105 type Flock_t struct { |
106 Start int64 |
106 Start int64 |
109 Type int16 |
109 Type int16 |
110 Whence int16 |
110 Whence int16 |
111 } |
111 } |
112 |
112 |
113 type Dirent struct { |
113 type Dirent struct { |
114 Fileno uint64 |
114 Fileno uint64 |
115 Off int64 |
115 Off int64 |
116 Reclen uint16 |
116 Reclen uint16 |
117 Type uint8 |
117 Type uint8 |
118 Namlen uint8 |
118 Namlen uint8 |
119 X__d_padding [4]uint8 |
119 _ [4]uint8 |
120 Name [256]int8 |
120 Name [256]int8 |
121 } |
121 } |
122 |
122 |
123 type Fsid struct { |
123 type Fsid struct { |
124 Val [2]int32 |
124 Val [2]int32 |
125 } |
125 } |
260 type FdSet struct { |
260 type FdSet struct { |
261 Bits [32]uint32 |
261 Bits [32]uint32 |
262 } |
262 } |
263 |
263 |
264 const ( |
264 const ( |
265 SizeofIfMsghdr = 0xec |
265 SizeofIfMsghdr = 0xa0 |
266 SizeofIfData = 0xd4 |
266 SizeofIfData = 0x88 |
267 SizeofIfaMsghdr = 0x18 |
267 SizeofIfaMsghdr = 0x18 |
268 SizeofIfAnnounceMsghdr = 0x1a |
268 SizeofIfAnnounceMsghdr = 0x1a |
269 SizeofRtMsghdr = 0x60 |
269 SizeofRtMsghdr = 0x60 |
270 SizeofRtMetrics = 0x38 |
270 SizeofRtMetrics = 0x38 |
271 ) |
271 ) |
290 Addrlen uint8 |
290 Addrlen uint8 |
291 Hdrlen uint8 |
291 Hdrlen uint8 |
292 Link_state uint8 |
292 Link_state uint8 |
293 Mtu uint32 |
293 Mtu uint32 |
294 Metric uint32 |
294 Metric uint32 |
295 Pad uint32 |
295 Rdomain uint32 |
296 Baudrate uint64 |
296 Baudrate uint64 |
297 Ipackets uint64 |
297 Ipackets uint64 |
298 Ierrors uint64 |
298 Ierrors uint64 |
299 Opackets uint64 |
299 Opackets uint64 |
300 Oerrors uint64 |
300 Oerrors uint64 |
302 Ibytes uint64 |
302 Ibytes uint64 |
303 Obytes uint64 |
303 Obytes uint64 |
304 Imcasts uint64 |
304 Imcasts uint64 |
305 Omcasts uint64 |
305 Omcasts uint64 |
306 Iqdrops uint64 |
306 Iqdrops uint64 |
|
307 Oqdrops uint64 |
307 Noproto uint64 |
308 Noproto uint64 |
308 Capabilities uint32 |
309 Capabilities uint32 |
309 Lastchange Timeval |
310 Lastchange Timeval |
310 Mclpool [7]Mclpool |
|
311 } |
311 } |
312 |
312 |
313 type IfaMsghdr struct { |
313 type IfaMsghdr struct { |
314 Msglen uint16 |
314 Msglen uint16 |
315 Version uint8 |
315 Version uint8 |
366 Rtt uint32 |
366 Rtt uint32 |
367 Rttvar uint32 |
367 Rttvar uint32 |
368 Pad uint32 |
368 Pad uint32 |
369 } |
369 } |
370 |
370 |
371 type Mclpool struct { |
|
372 Grown int32 |
|
373 Alive uint16 |
|
374 Hwm uint16 |
|
375 Cwm uint16 |
|
376 Lwm uint16 |
|
377 } |
|
378 |
|
379 const ( |
371 const ( |
380 SizeofBpfVersion = 0x4 |
372 SizeofBpfVersion = 0x4 |
381 SizeofBpfStat = 0x8 |
373 SizeofBpfStat = 0x8 |
382 SizeofBpfProgram = 0x8 |
374 SizeofBpfProgram = 0x8 |
383 SizeofBpfInsn = 0x8 |
375 SizeofBpfInsn = 0x8 |
384 SizeofBpfHdr = 0x14 |
376 SizeofBpfHdr = 0x18 |
385 ) |
377 ) |
386 |
378 |
387 type BpfVersion struct { |
379 type BpfVersion struct { |
388 Major uint16 |
380 Major uint16 |
389 Minor uint16 |
381 Minor uint16 |
405 Jf uint8 |
397 Jf uint8 |
406 K uint32 |
398 K uint32 |
407 } |
399 } |
408 |
400 |
409 type BpfHdr struct { |
401 type BpfHdr struct { |
410 Tstamp BpfTimeval |
402 Tstamp BpfTimeval |
411 Caplen uint32 |
403 Caplen uint32 |
412 Datalen uint32 |
404 Datalen uint32 |
413 Hdrlen uint16 |
405 Hdrlen uint16 |
414 Pad_cgo_0 [2]byte |
406 Ifidx uint16 |
|
407 Flowid uint16 |
|
408 Flags uint8 |
|
409 Drops uint8 |
415 } |
410 } |
416 |
411 |
417 type BpfTimeval struct { |
412 type BpfTimeval struct { |
418 Sec uint32 |
413 Sec uint32 |
419 Usec uint32 |
414 Usec uint32 |
486 Paging int32 |
481 Paging int32 |
487 Wired int32 |
482 Wired int32 |
488 Zeropages int32 |
483 Zeropages int32 |
489 Reserve_pagedaemon int32 |
484 Reserve_pagedaemon int32 |
490 Reserve_kernel int32 |
485 Reserve_kernel int32 |
491 Anonpages int32 |
486 Unused01 int32 |
492 Vnodepages int32 |
487 Vnodepages int32 |
493 Vtextpages int32 |
488 Vtextpages int32 |
494 Freemin int32 |
489 Freemin int32 |
495 Freetarg int32 |
490 Freetarg int32 |
496 Inactarg int32 |
491 Inactarg int32 |
505 Swpages int32 |
500 Swpages int32 |
506 Swpginuse int32 |
501 Swpginuse int32 |
507 Swpgonly int32 |
502 Swpgonly int32 |
508 Nswget int32 |
503 Nswget int32 |
509 Nanon int32 |
504 Nanon int32 |
510 Nanonneeded int32 |
505 Unused05 int32 |
511 Nfreeanon int32 |
506 Unused06 int32 |
512 Faults int32 |
507 Faults int32 |
513 Traps int32 |
508 Traps int32 |
514 Intrs int32 |
509 Intrs int32 |
515 Swtch int32 |
510 Swtch int32 |
516 Softs int32 |
511 Softs int32 |
517 Syscalls int32 |
512 Syscalls int32 |
518 Pageins int32 |
513 Pageins int32 |
519 Obsolete_swapins int32 |
514 Unused07 int32 |
520 Obsolete_swapouts int32 |
515 Unused08 int32 |
521 Pgswapin int32 |
516 Pgswapin int32 |
522 Pgswapout int32 |
517 Pgswapout int32 |
523 Forks int32 |
518 Forks int32 |
524 Forks_ppwait int32 |
519 Forks_ppwait int32 |
525 Forks_sharevm int32 |
520 Forks_sharevm int32 |
526 Pga_zerohit int32 |
521 Pga_zerohit int32 |
527 Pga_zeromiss int32 |
522 Pga_zeromiss int32 |
528 Zeroaborts int32 |
523 Unused09 int32 |
529 Fltnoram int32 |
524 Fltnoram int32 |
530 Fltnoanon int32 |
525 Fltnoanon int32 |
531 Fltnoamap int32 |
526 Fltnoamap int32 |
532 Fltpgwait int32 |
527 Fltpgwait int32 |
533 Fltpgrele int32 |
528 Fltpgrele int32 |
555 Pdreact int32 |
550 Pdreact int32 |
556 Pdbusy int32 |
551 Pdbusy int32 |
557 Pdpageouts int32 |
552 Pdpageouts int32 |
558 Pdpending int32 |
553 Pdpending int32 |
559 Pddeact int32 |
554 Pddeact int32 |
560 Pdreanon int32 |
555 Unused11 int32 |
561 Pdrevnode int32 |
556 Unused12 int32 |
562 Pdrevtext int32 |
557 Unused13 int32 |
563 Fpswtch int32 |
558 Fpswtch int32 |
564 Kmapent int32 |
559 Kmapent int32 |
565 } |
560 } |
566 |
561 |
567 const SizeofClockinfo = 0x10 |
562 const SizeofClockinfo = 0x10 |