From 65fa68e25d5dc0367622cc230c3f5ac1d2587370 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Thu, 28 Apr 2005 13:11:29 +0000 Subject: Added support for clock_getres() and clock_settime() in addition to the already existing clock_gettime(). In addition they will now use the corresponding system calls if they exists, which resulted in a move to libc/sysdeps/linux/common for clock_gettime.c (it was previously located in libc/misc/time). --- include/time.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'include/time.h') diff --git a/include/time.h b/include/time.h index b14bb3673..e8e514ca5 100644 --- a/include/time.h +++ b/include/time.h @@ -345,17 +345,17 @@ extern int nanosleep (__const struct timespec *__requested_time, struct timespec *__remaining); -/* Get current value of clock CLOCK_ID and store it in TP. */ -extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW; - -#ifdef __UCLIBC_MJN3_ONLY__ -#warning "mjn3 FIXME: a bunch of unimplemented function prototypes." /* Get resolution of clock CLOCK_ID. */ extern int clock_getres (clockid_t __clock_id, struct timespec *__res) __THROW; +/* Get current value of clock CLOCK_ID and store it in TP. */ +extern int clock_gettime (clockid_t __clock_id, struct timespec *__tp) __THROW; + /* Set clock CLOCK_ID to value TP. */ extern int clock_settime (clockid_t __clock_id, __const struct timespec *__tp) __THROW; +#ifdef __UCLIBC_MJN3_ONLY__ +#warning "mjn3 FIXME: a bunch of unimplemented function prototypes." # ifdef __USE_XOPEN2K /* High-resolution sleep with the specified clock. -- cgit v1.2.3