about summary refs log tree commit diff
path: root/time
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1996-05-10 22:55:26 +0000
committerRoland McGrath <roland@gnu.org>1996-05-10 22:55:26 +0000
commitf8cac037eea3e928b0d5e0c17990b6996159eec8 (patch)
tree6a974750b859b185818d8f8b0763907f66fc8954 /time
parent7cfb2d8be3d4ee24fbba14df7176fd13e7052205 (diff)
downloadglibc-f8cac037eea3e928b0d5e0c17990b6996159eec8.tar.gz
glibc-f8cac037eea3e928b0d5e0c17990b6996159eec8.tar.xz
glibc-f8cac037eea3e928b0d5e0c17990b6996159eec8.zip
Fri May 10 18:36:14 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
	* FAQ: New file contributed by drepper.

	* time/Makefile (headers): Add timebits.h.
	* sysdeps/unix/sysv/linux/timebits.h: New file.
	* sysdeps/stub/timebits.h: New file.
	* time/time.h (CLK_TCK): Define to CLOCKS_PER_SEC.
	(CLOCKS_PER_SEC): Remove this macro.  Instead #include <timebits.h>.
Diffstat (limited to 'time')
-rw-r--r--time/Makefile2
-rw-r--r--time/time.h9
2 files changed, 7 insertions, 4 deletions
diff --git a/time/Makefile b/time/Makefile
index 5741853db4..8feb377dd4 100644
--- a/time/Makefile
+++ b/time/Makefile
@@ -21,7 +21,7 @@
 #
 subdir	:= time
 
-headers	:= time.h sys/time.h sys/timeb.h
+headers	:= time.h sys/time.h sys/timeb.h timebits.h
 distribute := tzfile.h private.h scheck.c ialloc.c yearistype
 extra-objs = scheck.o ialloc.o zonenames $(tzfiles:%=z.%)
 
diff --git a/time/time.h b/time/time.h
index 5f9591419e..fda7f20387 100644
--- a/time/time.h
+++ b/time/time.h
@@ -40,11 +40,14 @@ __BEGIN_DECLS
 
 
 #ifdef	_TIME_H
-/* Processor clock ticks per second.  */
-#define	CLOCKS_PER_SEC	1	/* ??? */
 
+/* This defines CLOCKS_PER_SEC, which is the number of processor clock
+   ticks per second.  */
+#include <timebits.h>
+
+/* This is the obsolete POSIX.1-1988 name for the same constant.  */
 #ifdef	__USE_POSIX
-#define	CLK_TCK		60	/* ??? */
+#define	CLK_TCK		CLOCKS_PER_SEC
 #endif
 
 #endif /* <time.h> included.  */