Subject: CVS commit: syssrc/sys/sys
To: None <source-changes@netbsd.org>
From: Ben Harris <bjh21@netbsd.org>
List: source-changes
Date: 06/30/2002 12:45:40
Module Name:	syssrc
Committed By:	bjh21
Date:		Sun Jun 30 09:45:40 UTC 2002

Modified Files:
	basesrc/include: time.h
	basesrc/lib/libc/gen: Makefile.inc sysconf.c times.c
	syssrc/sys/sys: times.h unistd.h
Added Files:
	basesrc/lib/libc/gen: __times13.c

Log Message:
Version times() so that programs compiled before the recent change to make
sysconf(_SC_CLK_TCK) return hz will work.

In detail:
__times13() returns values scaled by hz.
times() returns values scaled by 100.
<sys/times.h> renames times() to __times13().

_SC_CLK_TCK has changed from 3 to 39.
sysconf(3) returns 100.
sysconf(39) returns hz.
CLK_TCK is defined as sysconf(39).


To generate a diff of this commit:
cvs rdiff -r1.28 -r1.29 basesrc/include/time.h
cvs rdiff -r1.111 -r1.112 basesrc/lib/libc/gen/Makefile.inc
cvs rdiff -r0 -r1.1 basesrc/lib/libc/gen/__times13.c
cvs rdiff -r1.15 -r1.16 basesrc/lib/libc/gen/sysconf.c
cvs rdiff -r1.12 -r1.13 basesrc/lib/libc/gen/times.c
cvs rdiff -r1.8 -r1.9 syssrc/sys/sys/times.h
cvs rdiff -r1.19 -r1.20 syssrc/sys/sys/unistd.h

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