summaryrefslogtreecommitdiff
path: root/include/time.h
diff options
context:
space:
mode:
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-04-28 13:11:29 +0000
committerPeter Kjellerstedt <peter.kjellerstedt@axis.com>2005-04-28 13:11:29 +0000
commit65fa68e25d5dc0367622cc230c3f5ac1d2587370 (patch)
tree39de7e74c931d4a4a42ed4543b153e3bca7497cd /include/time.h
parentc1cc2549bd2bd3266bf9912bb56874f99f77413e (diff)
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).
Diffstat (limited to 'include/time.h')
-rw-r--r--include/time.h10
1 files changed, 5 insertions, 5 deletions
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.