netbsd-src/usr.bin/config
riastradh 6dc5a3c0cc config(1): Make sort order deterministic.
Ensure we break ties in every case.  This way, even though we use the
unstable qsort(3) library routine, the output is reproducible, no
matter what algorithm is behind qsort(3).

It would be nice if we could just use a stable sort function here,
but mergesort(3) is nonstandard, so we'd have to add it to
tools/compat, which is a big pain.

Instead, put a tie-breaking rule in every comparison function we use
with qsort, and abort() in the event of ties -- that way, we noisily
refuse to rely on unstable sort order.

While here, dispense with any question of integer overflow, and
sprinkle comments.

PR bin/58115
2024-04-05 00:43:42 +00:00
..
Makefile bsd.own.mk: rename GCC_NO_* to CC_WNO_* 2023-06-03 09:09:01 +00:00
TODO fix various typos in comments and log messages. 2021-08-02 12:56:22 +00:00
config.1
config.5 With config(1) as it exists today, a kernel Makefile is able to implement 2024-01-18 04:41:37 +00:00
config.samples.5 fix various typos, mainly in comments. 2022-04-04 19:33:44 +00:00
defs.h config(1): Make sort order deterministic. 2024-04-05 00:43:42 +00:00
files.c config(1): Make sort order deterministic. 2024-04-05 00:43:42 +00:00
gram.y With config(1) as it exists today, a kernel Makefile is able to implement 2024-01-18 04:41:37 +00:00
hash.c
lint.c PR/56453: Wataru Ashihara: config(1): Assertion fails in config -L 2021-10-12 17:14:10 +00:00
main.c With config(1) as it exists today, a kernel Makefile is able to implement 2024-01-18 04:41:37 +00:00
mkdevsw.c
mkheaders.c
mkioconf.c config(1): Make sort order deterministic. 2024-04-05 00:43:42 +00:00
mkmakefile.c config(1): Make sort order deterministic. 2024-04-05 00:43:42 +00:00
mkswap.c
pack.c config(1): Make sort order deterministic. 2024-04-05 00:43:42 +00:00
scan.l With config(1) as it exists today, a kernel Makefile is able to implement 2024-01-18 04:41:37 +00:00
sem.c config: remove unused local variable 2021-08-25 23:07:34 +00:00
sem.h
util.c With config(1) as it exists today, a kernel Makefile is able to implement 2024-01-18 04:41:37 +00:00