aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/test-strtonum.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-08-26 15:55:46 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-08-26 15:55:46 +0000
commitafc45099796ef993531edb38243a35e0e65a03f2 (patch)
treeb971b16caeb4147eaf28d72235d445fd9308d606 /test-strtonum.c
parentf7d7aa27e1c4864eb85b6812980df0498fc4c992 (diff)
downloadmandoc-afc45099796ef993531edb38243a35e0e65a03f2.tar.gz
mandoc-afc45099796ef993531edb38243a35e0e65a03f2.tar.zst
mandoc-afc45099796ef993531edb38243a35e0e65a03f2.zip
Do not fork and exec cmp(1); instead, simply fstat(2), mmap(2), and
compare the files directly, allowing a much stricter pledge(2), at very little cost: merely 15 additional lines of very simple code. Suggested by George Brown <321 dot george at gmail dot com> on misc@.
Diffstat (limited to 'test-strtonum.c')
0 files changed, 0 insertions, 0 deletions