[PATCH] Support for sysconf(_SC_MONOTONIC_CLOCK)
peter.kjellerstedt at axis.com
Mon Sep 18 15:25:23 UTC 2006
> -----Original Message-----
> From: uclibc-bounces at uclibc.org
> [mailto:uclibc-bounces at uclibc.org] On Behalf Of Peter Kjellerstedt
> Sent: Monday, September 18, 2006 17:22
> To: uclibc at uclibc.org
> Subject: [PATCH] Support for sysconf(_SC_MONOTONIC_CLOCK)
> The attached patch adds support for sysconf(_SC_MONOTONIC_CLOCK).
> This is required to get glib 0.12.3 to use the monotonic clock
And that should of course be glib 2.12.3.
> 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.
More information about the uClibc