MFC r307003, r307564: makewhatis: make output reproducible
r307003: Instead:
- provide fts_open() with a comparison function to process directories and files in a deterministic order
- in addition to the existing hash, insert pages into a linked list which will be sorted (by virtue of 1)
- iterate over pages by the list in 2, instead of hash order
Idea from: des
r307564: makewhatis: avoid skipping another page after one with no mlinks
Submitted by: Ingo Schwarze
Sponsored by: The FreeBSD Foundation