sysconf(_SC_CLK_TCK) [NetBSD: basesrc/lib/libc/gen]

Giorgos Keramidas <[email protected]>
Newsgroups gmane.os.freebsd.devel.audit
Message-ID <[email protected]>
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" <[email protected]>
	Subject: CVS commit: basesrc/lib/libc/gen
	To: [email protected]

	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 [email protected]
with "unsubscribe freebsd-audit" in the body of the message
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.