Subject: CVS commit: src
To: None <>
From: matthew green <>
List: source-changes
Date: 11/19/1998 07:38:26
Module Name:	src
Committed By:	mrg
Date:		Thu Nov 19 15:38:26 UTC 1998

Modified Files:
	src/sys/arch/alpha/tc: cfb.c sfb.c
	src/sys/arch/alpha/wscons: wscons.c
	src/sys/arch/amiga/amiga: mem.c
	src/sys/arch/arm32/arm32: mem.c
	src/sys/arch/arm32/ofw: ofrom.c
	src/sys/arch/arm32/shark: pccons.c
	src/sys/arch/arm32/vidc/console: vidcconsole.c
	src/sys/arch/atari/atari: mem.c
	src/sys/arch/bebox/isa: pccons.c
	src/sys/arch/hp300/hp300: mem.c
	src/sys/arch/i386/i386: mem.c
	src/sys/arch/i386/isa/pcvt: pcvt_drv.c
	src/sys/arch/mac68k/dev: grf.c
	src/sys/arch/mac68k/mac68k: mem.c
	src/sys/arch/mac68k/obio: asc.c
	src/sys/arch/macppc/dev: nvram.c ofb.c
	src/sys/arch/mips/mips: mem.c
	src/sys/arch/mvme68k/mvme68k: mem.c
	src/sys/arch/next68k/next68k: mem.c
	src/sys/arch/pc532/pc532: mem.c
	src/sys/arch/pmax/dev: fb_usrreq.c rcons.c
	src/sys/arch/powerpc/powerpc: mem.c
	src/sys/arch/sparc/dev: cgeight.c cgfour.c cgfourteen.c cgthree.c
	src/sys/arch/sparc64/dev: cgeight.c cgfour.c cgfourteen.c cgthree.c
	src/sys/arch/sun3/sun3: mem.c
	src/sys/arch/sun3/sun3x: mem.c
	src/sys/arch/vax/vax: mem.c
	src/sys/arch/vax/vsa: smg.c
	src/sys/arch/x68k/x68k: mem.c
	src/sys/dev: audio.c
	src/sys/dev/isa: isadma.c
	src/sys/dev/pci: eap.c tga.c
	src/sys/dev/tc: cfb.c mfb.c sfb.c tfb.c xcfb.c
Log Message:
fix problems in many d_mmap routines:
- returned EOPNOTSUPP rather than -1.
- no check for negative offset.
many of these fix potential security problems in these drivers.

the d_mmap cdev routine should be changed to have a prototype like:
paddr_t (*d_mmap) __P((dev_t, off_t, int));

by someone!