[PATCH] Support for sysconf(_SC_MONOTONIC_CLOCK)

Rich Felker dalias at aerifal.cx
Mon Sep 18 15:53:42 UTC 2006

On Mon, Sep 18, 2006 at 05:21:57PM +0200, Peter Kjellerstedt wrote:
> +    case _SC_MONOTONIC_CLOCK:
> +#ifdef __NR_clock_getres
> +      /* Check using the clock_getres system call.  */
> +      {
> +        static inline _syscall2(int, clock_getres, clockid_t, clock_id, struct timespec*, res);

This is a nested function -- are they allowed in uclibc?? If inlining
is disabled it might even result in an executable stack requirement.
IMO put the syscall macro where it belongs, outside of functions.

Other than that, no comments, you'll have to wait to hear what the
actual developers say.


More information about the uClibc mailing list