]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r307003, r307564: makewhatis: make output reproducible
authoremaste <emaste@FreeBSD.org>
Sat, 26 Nov 2016 03:39:02 +0000 (03:39 +0000)
committeremaste <emaste@FreeBSD.org>
Sat, 26 Nov 2016 03:39:02 +0000 (03:39 +0000)
commit1985f47f08fb0b1f0a1cbf7b69ffebee66a42a10
treef560c4c80c809f82badd3d17d5ec394d4b26c8b7
parentf1d86cf3b7aabc38f07c50d67af828ade8870054
MFC r307003, r307564: makewhatis: make output reproducible

r307003: Instead:

1) provide fts_open() with a comparison function to process directories
   and files in a deterministic order
2) in addition to the existing hash, insert pages into a linked list
   which will be sorted (by virtue of 1)
3) 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
contrib/mdocml/mandocdb.c