world - Fix fstat and gcore
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Mar 2019 17:08:25 +0000 (10:08 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 27 Mar 2019 17:08:25 +0000 (10:08 -0700)
commit4c2d301f6abfa3af6572a66d6c780f0580285c81
tree6635175f188c4dcd8260eb224e137218d1301d2a
parent96c6df5c16ded347f2baa10392f011d29ce576e8
world - Fix fstat and gcore

* fstat needs to iterate vm_map_entry's
  via the RB tree, but it isn't entirely trivial because we
  have to kread().

* gcore needs to steal a different field for its iterator
  when building a map from procfs.

* Fixes buildworld.

Reported-by: zrj
usr.bin/fstat/fstat.c
usr.bin/gcore/elfcore.c