Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Quentin Garnier <cube@netbsd.org>
List: source-changes
Date: 10/23/2005 00:09:14
Module Name:	src
Committed By:	cube
Date:		Sun Oct 23 00:09:14 UTC 2005

Modified Files:
	src/sys/compat/netbsd32: netbsd32_time.c
	src/sys/kern: kern_sig.c kern_time.c
	src/sys/sys: signalvar.h systm.h time.h
Added Files:
	src/sys/sys: timevar.h

Log Message:
Implement a few changes needed to properly resolve PR#30924, as
discussed in the PR.

- introduce sys/timevar.h to hold kernel-specific stuff relevant to
  sys/time.h.  Ideally, timevar.h would contain all (or almost) of the
  #ifdef _KERNEL part of time.h, but that's a pretty big and tedious
  change to make.  For now, it will contain only the prototypes I
  introduced when working on COMPAT_NETBSD32.

- split copyinout_t into copyin_t and copyout_t, it makes prototypes more
  explicit about the meaning of a given argument.  Suggested by yamt@.

- move copyinout_t definition in sys/time.h to systm.h as copyin_t and
  copyout_t

- make everything uses the new types and include the proper headers at
  the proper places.


To generate a diff of this commit:
cvs rdiff -r1.12 -r1.13 src/sys/compat/netbsd32/netbsd32_time.c
cvs rdiff -r1.209 -r1.210 src/sys/kern/kern_sig.c
cvs rdiff -r1.94 -r1.95 src/sys/kern/kern_time.c
cvs rdiff -r1.59 -r1.60 src/sys/sys/signalvar.h
cvs rdiff -r1.180 -r1.181 src/sys/sys/systm.h
cvs rdiff -r1.50 -r1.51 src/sys/sys/time.h
cvs rdiff -r0 -r1.1 src/sys/sys/timevar.h

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