aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2004-03-18 07:47:54 +0000
committerRoland McGrath <roland@gnu.org>2004-03-18 07:47:54 +0000
commit766e042d530901453109869bf3b64b5f0771b5ba (patch)
tree376d382460a87f1bb3ec2461b07568648686bfd3
parent2d9b02a408070f33d20a4f8f650fe729f2d12dcf (diff)
downloadglibc-766e042d530901453109869bf3b64b5f0771b5ba.tar
glibc-766e042d530901453109869bf3b64b5f0771b5ba.tar.gz
glibc-766e042d530901453109869bf3b64b5f0771b5ba.tar.bz2
glibc-766e042d530901453109869bf3b64b5f0771b5ba.zip
2004-03-17 Roland McGrath <roland@redhat.com>
* sysdeps/unix/sysv/linux/timer_create.c (timer_create): Pass missing first argument to clock_getres so we ever enable kernel timers.
-rw-r--r--nptl/sysdeps/unix/sysv/linux/timer_create.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/nptl/sysdeps/unix/sysv/linux/timer_create.c b/nptl/sysdeps/unix/sysv/linux/timer_create.c
index 90e10b546d..ca6ff6c7ef 100644
--- a/nptl/sysdeps/unix/sysv/linux/timer_create.c
+++ b/nptl/sysdeps/unix/sysv/linux/timer_create.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003 Free Software Foundation, Inc.
+/* Copyright (C) 2003,2004 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@redhat.com>, 2003.
@@ -134,7 +134,8 @@ timer_create (clock_id, evp, timerid)
INTERNAL_SYSCALL_DECL (err);
struct timespec ts;
int res;
- res = INTERNAL_SYSCALL (clock_getres, err, 1, &ts);
+ res = INTERNAL_SYSCALL (clock_getres, err, 2,
+ CLOCK_REALTIME, &ts);
__no_posix_timers = (INTERNAL_SYSCALL_ERROR_P (res, err)
? -1 : 1);
}