diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-08-26 15:55:42 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-08-26 15:55:42 +0000 |
commit | c0d496ecd4f9c6a510d36bd307ae6121839defee (patch) | |
tree | 96fdec972168bf13aa659264dbe3cdbc47679814 /lib/libc/termios/tcflush.c | |
parent | 760de62e46f173fd020aa2d129b7cbb098989b34 (diff) |
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 'lib/libc/termios/tcflush.c')
0 files changed, 0 insertions, 0 deletions