diff options
author | Ulrich Drepper <drepper@redhat.com> | 2010-03-25 04:01:33 -0700 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2010-03-25 04:01:33 -0700 |
commit | 89a4419cc384c090b1eabe610647aa4e14436a3f (patch) | |
tree | 253c7010cf7a78c1736f6e0a6e19731ce0adc69c /sysdeps/unix/sysv/linux/clock_settime.c | |
parent | 03615f7d837398790f88f7bd936a33a99e799af5 (diff) | |
download | glibc-89a4419cc384c090b1eabe610647aa4e14436a3f.tar.gz glibc-89a4419cc384c090b1eabe610647aa4e14436a3f.tar.xz glibc-89a4419cc384c090b1eabe610647aa4e14436a3f.zip |
Add support for new clocks.
Recent Linux kernels added support for the CLOCK_MONOTONIC_RAW, CLOCK_REALTIME_COARSE, and CLOCK_MONOTONIC_COARSE clocks.
Diffstat (limited to 'sysdeps/unix/sysv/linux/clock_settime.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/clock_settime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c index 217ae3f29b..8c52456fdd 100644 --- a/sysdeps/unix/sysv/linux/clock_settime.c +++ b/sysdeps/unix/sysv/linux/clock_settime.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2003, 2004, 2006 Free Software Foundation, Inc. +/* Copyright (C) 2003, 2004, 2006, 2010 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 @@ -45,7 +45,7 @@ maybe_syscall_settime_cpu (clockid_t clock_id, const struct timespec *tp) INTERNAL_SYSCALL_DECL (err); int r = INTERNAL_SYSCALL (clock_settime, err, 2, clock_id, tp); if (!INTERNAL_SYSCALL_ERROR_P (r, err)) - return 0; + return 0; e = INTERNAL_SYSCALL_ERRNO (r, err); # ifndef __ASSUME_POSIX_TIMERS @@ -90,6 +90,7 @@ extern int __libc_missing_posix_timers attribute_hidden; /* The REALTIME clock might be available. Try the syscall first. */ # define SYSDEP_SETTIME \ case CLOCK_REALTIME: \ + case CLOCK_REALTIME_COARSE: \ { \ int e = EINVAL; \ \ |