From owner-cvs-user Thu Jan 16 13:59:11 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA16285 for cvs-user-outgoing; Thu, 16 Jan 1997 13:59:11 -0800 (PST) Received: (from alex@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA16226; Thu, 16 Jan 1997 13:58:41 -0800 (PST) Date: Thu, 16 Jan 1997 13:58:41 -0800 (PST) From: Alex Nash Message-Id: <199701162158.NAA16226@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-bin, cvs-lib, cvs-user, cvs-share, cvs-usrbin, cvs-libexec, cvs-sbin, cvs-usrsbin Subject: cvs commit: src/bin/cp utils.c src/lib/libc/db/recno rec_open.c src/libexec/lfs_cleanerd library.c src/release/sysinstall uc_main.c src/usr.bin/cmp regular.c src/usr.bin/look look.c src/usr.bin/strip strip.c src/usr.bin/tail forward.c reverse.c src/usr.bin/xinstall xinstall.c src/usr.bin/xlint/lint1 mem1.c src/usr.bin/xlint/lint2 mem2.c src/usr.sbin/config main.c src/usr.sbin/ctm/mkCTM mkctm.c src/usr.sbin/kvm_mkdb nlist.c src/usr.sbin/rpc.statd file.c src/lib/libc/gen nlist.c src/libexec/ftpd ftpd.c src/sbin/newfs mkfs.c src/share/examples/meteor rgb16.c test-n.c yuvpk.c yuvpl.c src/share/man/man4/man4.i386 meteor.4 src/usr.bin/locate/locate locate.c Sender: owner-cvs-user@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk alex 97/01/16 13:58:41 Modified: bin/cp utils.c lib/libc/db/recno rec_open.c lib/libc/gen nlist.c libexec/ftpd ftpd.c libexec/lfs_cleanerd library.c release/sysinstall uc_main.c sbin/newfs mkfs.c share/examples/meteor rgb16.c test-n.c yuvpk.c yuvpl.c share/man/man4/man4.i386 meteor.4 usr.bin/cmp regular.c usr.bin/locate/locate locate.c usr.bin/look look.c usr.bin/strip strip.c usr.bin/tail forward.c reverse.c usr.bin/xinstall xinstall.c usr.bin/xlint/lint1 mem1.c usr.bin/xlint/lint2 mem2.c usr.sbin/config main.c usr.sbin/ctm/mkCTM mkctm.c usr.sbin/kvm_mkdb nlist.c usr.sbin/rpc.statd file.c Log: Sweep through the tree fixing mmap() usage: - Use MAP_FAILED instead of the constant -1 to indicate failure (required by POSIX). - Removed flag arguments of '0' (required by POSIX). - Fixed code which expected an error return of 0. - Fixed code which thought any address with the high bit set was an error. - Check for failure where no checks were present. Discussed with: bde Revision Changes Path 1.12 +1 -1 src/bin/cp/utils.c 1.2 +28 -17 src/lib/libc/db/recno/rec_open.c 1.6 +2 -2 src/lib/libc/gen/nlist.c 1.29 +1 -1 src/libexec/ftpd/ftpd.c 1.6 +4 -4 src/libexec/lfs_cleanerd/library.c 1.17 +1 -1 src/release/sysinstall/uc_main.c 1.13 +1 -1 src/sbin/newfs/mkfs.c 1.2 +2 -2 src/share/examples/meteor/rgb16.c 1.2 +2 -2 src/share/examples/meteor/test-n.c 1.2 +2 -2 src/share/examples/meteor/yuvpk.c 1.2 +2 -2 src/share/examples/meteor/yuvpl.c 1.3 +4 -3 src/share/man/man4/man4.i386/meteor.4 1.4 +2 -2 src/usr.bin/cmp/regular.c 1.8 +1 -1 src/usr.bin/locate/locate/locate.c 1.4 +1 -1 src/usr.bin/look/look.c 1.8 +1 -1 src/usr.bin/strip/strip.c 1.6 +1 -1 src/usr.bin/tail/forward.c 1.6 +1 -1 src/usr.bin/tail/reverse.c 1.20 +5 -5 src/usr.bin/xinstall/xinstall.c 1.2 +1 -1 src/usr.bin/xlint/lint1/mem1.c 1.2 +1 -1 src/usr.bin/xlint/lint2/mem2.c 1.16 +4 -4 src/usr.sbin/config/main.c 1.7 +3 -3 src/usr.sbin/ctm/mkCTM/mkctm.c 1.6 +3 -0 src/usr.sbin/kvm_mkdb/nlist.c 1.2 +1 -1 src/usr.sbin/rpc.statd/file.c