diff options
author | bde <bde@FreeBSD.org> | 1995-02-03 21:23:46 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-02-03 21:23:46 +0000 |
commit | 8f39aae5fac012cf8c8f531386f30a2b8065f096 (patch) | |
tree | 7ebf9c5b4899d47a7b412f1d89f4370651325aef /sys | |
parent | beb606568ca0ebfd7a96575f8230a07a69d4e85d (diff) | |
download | FreeBSD-src-8f39aae5fac012cf8c8f531386f30a2b8065f096.zip FreeBSD-src-8f39aae5fac012cf8c8f531386f30a2b8065f096.tar.gz |
Define _BSD_CLK_TCK_ and _BSD_CLOCKS_PER_SEC_ to support correct
definitions of CLK_TCK and CLOCKS_PER_SEC.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/include/ansi.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/sys/i386/include/ansi.h b/sys/i386/include/ansi.h index 77ec887..18cc757 100644 --- a/sys/i386/include/ansi.h +++ b/sys/i386/include/ansi.h @@ -31,11 +31,11 @@ * SUCH DAMAGE. * * @(#)ansi.h 8.2 (Berkeley) 1/4/94 - * $Id$ + * $Id: ansi.h,v 1.5 1994/08/02 07:38:38 davidg Exp $ */ -#ifndef _ANSI_H_ -#define _ANSI_H_ +#ifndef _MACHINE_ANSI_H_ +#define _MACHINE_ANSI_H_ /* * Types which are fundamental to the implementation and may appear in @@ -70,4 +70,17 @@ #define _BSD_WCHAR_T_ int /* wchar_t */ #define _BSD_RUNE_T_ int /* rune_t */ -#endif /* _ANSI_H_ */ +/* + * Frequencies of the clock ticks reported by clock() and times(). They + * are the same as stathz for bogus historical reasons. They should be + * 1e6 because clock() and times() are implemented using getrusage() and + * there is no good reason why they should be less accurate. There is + * the bad reason that (broken) programs might not like clock_t or + * CLOCKS_PER_SEC being ``double'' (``unsigned long'' is not large enough + * to hold the required 24 hours worth of ticks if the frequency is + * 1000000ul, and ``unsigned long long'' would be nonstandard). + */ +#define _BSD_CLK_TCK_ 128 +#define _BSD_CLOCKS_PER_SEC_ 128 + +#endif /* !_MACHINE_ANSI_H_ */ |