Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: source-changes
Date: 07/18/2000 03:23:44
Module Name: basesrc
Committed By: jdolecek
Date: Tue Jul 18 10:23:43 UTC 2000
Modified Files:
basesrc/usr.bin/cmp: regular.c
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -r1.8 -r1.9 basesrc/usr.bin/cmp/regular.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.