Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Jun 2002 07:01:40 +0300
From:      Giorgos Keramidas <keramida@FreeBSD.org>
To:        audit@FreeBSD.org
Subject:   sysconf(_SC_CLK_TCK) [NetBSD: basesrc/lib/libc/gen]
Message-ID:  <20020630040139.GC1223@hades.hell.gr>

next in thread | raw e-mail | index | archive | help
Hello all,

Does the following change look like a nice thing to make to our libc
too?  I'm asking before trying to make a diff that does this, because
the log mentions that the standards do not require this to return the
value of HZ, and it's probably improper if programs depend on this
being == HZ.

	Date: Sun, 23 Jun 2002 22:19:03 +0300 (EEST)
	From: "Perry E. Metzger" <perry@netbsd.org>
	Subject: CVS commit: basesrc/lib/libc/gen
	To: source-changes@netbsd.org

	Modified Files:
		basesrc/lib/libc/gen: sysconf.c

	Log Message:
	make sysconf(_SC_CLK_TCK) return the kernel hz value, instead of a
	fixed constant, as is done on Solaris, Linux, etc.

	Technically, standards don't *require* this, but having it return a
	constant is a violation of the spirit, and screws up programs that
	(perhaps improperly) assume that it will return kernel hz.
	----- End forwarded message -----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020630040139.GC1223>