NetBSD/usr.bin/cmp
jdolecek 2d6604a645 Do not mmap() with MAP_PRIVATE - looks like kernel tries to preallocate
some memory in case the mmapped contents would be changed and this fails
for very large files; it's unnecessary anyway, cmp(1) does not change file
contents in any way.
This fixes bin/10625 by Uwe Klaus.

While here, change the code to fallback to classic stdio if mmap fails.
2000-07-18 10:23:43 +00:00
..
Makefile RCS ID police 1997-01-09 20:18:21 +00:00
cmp.1 WARNSify, fix .Nm usage 1997-10-18 12:52:04 +00:00
cmp.c make usage string match manpage 1998-01-12 08:11:19 +00:00
extern.h RCS ID police 1997-01-09 20:18:21 +00:00
misc.c fix compile warnings on the alpha. 1997-10-19 14:05:56 +00:00
regular.c Do not mmap() with MAP_PRIVATE - looks like kernel tries to preallocate 2000-07-18 10:23:43 +00:00
special.c Add { and } to shut up egcs. Reformat the more questionable code. 1998-08-25 20:59:36 +00:00