[PATCH] Support for sysconf(_SC_MONOTONIC_CLOCK)
Peter Kjellerstedt
peter.kjellerstedt at axis.com
Mon Sep 18 08:21:57 PDT 2006
The attached patch adds support for sysconf(_SC_MONOTONIC_CLOCK).
This is required to get glib 0.12.3 to use the monotonic clock
for its gtimers rather than gettimeofday().
I can commit the patch myself, but I would like an ok to do so
first. The reason is that I need to use a syscall to check whether
the monotonic clock support is actually present in the kernel,
and this is done in libc/unistd/sysconf.c.
If this patch is not acceptable, then I guess we need to do
something similar to what is done in glibc where this is done
via a sysconf() which is in sysdeps/unix/sysv/linux/sysconf.c,
which in turn includes sysdeps/posix/sysconf.c.
Comments?
//Peter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sysconf.patch
Type: application/octet-stream
Size: 980 bytes
Desc: sysconf.patch
Url : http://busybox.net/lists/uclibc/attachments/20060918/a36b49d0/attachment.obj
More information about the uClibc
mailing list