Cache the result of uname(3) such that we don't need to call it
authorschwarze <schwarze@openbsd.org>
Tue, 7 Jan 2014 09:10:58 +0000 (09:10 +0000)
committerschwarze <schwarze@openbsd.org>
Tue, 7 Jan 2014 09:10:58 +0000 (09:10 +0000)
commit4c4681288c7fbdcbfecdcc1851ecdd6d7bb5e797
treeb6ad1de83b5562ab13cf93c36b8306e453fe19f4
parent5780d6e10b2bbc3d09f91c19d9d013ff8dc0f868
Cache the result of uname(3) such that we don't need to call it
over and over again for each manual; found with gprof(1).
Speeds up mandocdb(8) -Q by 3%, now at 39.5% of makewhatis(8).
usr.bin/mandoc/mdoc_validate.c