summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authormarcus <marcus>2005-01-31 01:59:49 +0000
committermarcus <marcus>2005-01-31 01:59:49 +0000
commit1e16c52a3c55c85344513e07486945c8775a7280 (patch)
tree75dcb420e19805993187555614a6a25c835b146f /libc
parentaacef16b599f85e451d3240b8ff714ef971b6602 (diff)
2005-01-31 Marcus Brinkmann <marcus@gnu.org>
* hurd-l4/sysdeps/l4/getclktck.c: New file.
Diffstat (limited to 'libc')
-rw-r--r--libc/ChangeLog2
-rw-r--r--libc/hurd-l4/sysdeps/l4/getclktck.c28
2 files changed, 30 insertions, 0 deletions
diff --git a/libc/ChangeLog b/libc/ChangeLog
index 2bb6003..f0facdd 100644
--- a/libc/ChangeLog
+++ b/libc/ChangeLog
@@ -1,5 +1,7 @@
2005-01-31 Marcus Brinkmann <marcus@gnu.org>
+ * hurd-l4/sysdeps/l4/getclktck.c: New file.
+
* hurd-l4/sysdeps/l4/hurd/isatty.c: New file.
* hurd-l4/sysdeps/l4/hurd/fxstat64.c (__fxstat64): Fake a
character device for fds 0 to 2.
diff --git a/libc/hurd-l4/sysdeps/l4/getclktck.c b/libc/hurd-l4/sysdeps/l4/getclktck.c
new file mode 100644
index 0000000..cccd945
--- /dev/null
+++ b/libc/hurd-l4/sysdeps/l4/getclktck.c
@@ -0,0 +1,28 @@
+/* Return run-time value of CLK_TCK for L4.
+ Copyright (C) 1999, 2000, 2001, 2005 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, write to the Free
+ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
+ 02111-1307 USA. */
+
+#include <time.h>
+
+/* Return frequency of `times'. On L4, the clock measures time in
+ microseconds, irregardless of processor frequency. */
+int
+__getclktck (void)
+{
+ return 1000 * 10000;
+}