Subject: CVS commit: src
To: None <source-changes@NetBSD.org>
From: Reinoud Zandijk <reinoud@netbsd.org>
List: source-changes
Date: 08/28/2005 20:58:14
Module Name:	src
Committed By:	reinoud
Date:		Sun Aug 28 20:58:14 UTC 2005

Modified Files:
	src/distrib/sets/lists/comp: mi
	src/share/man/man9: Makefile copy.9
	src/sys/kern: kern_subr.c
	src/sys/sys: systm.h

Log Message:
Create functions ioctl_copyin() and ioctl_copyout(). They are meant to be
used in ioctl routines to do the right thing when the FKIOCTL flag is
passed to the IOCTL routine indicating its a in-kernel VOP_IOCTL call and
indirect addresses provided in the arguments are to be seen as kernel
adresses rather than userland adresses.

A simple substitution and prepending of the `flags' passed on to the ioctl
handler is enough to DTRT.


To generate a diff of this commit:
cvs rdiff -r1.809 -r1.810 src/distrib/sets/lists/comp/mi
cvs rdiff -r1.174 -r1.175 src/share/man/man9/Makefile
cvs rdiff -r1.14 -r1.15 src/share/man/man9/copy.9
cvs rdiff -r1.118 -r1.119 src/sys/kern/kern_subr.c
cvs rdiff -r1.179 -r1.180 src/sys/sys/systm.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.