[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: coreutils/date.c with FEATURE_DATE_NANO=y broken?
From:       Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn () axis ! com>
Date:       2010-06-20 9:04:20
Message-ID: 1006201103230.9105 () somehost
[Download RAW message or body]

On Thu, 17 Jun 2010, Dan Fandrich wrote:

> On Fri, Jun 18, 2010 at 02:55:27AM +0200, Denys Vlasenko wrote:
> > -		clock_gettime(CLOCK_REALTIME, &ts);
> > +		/* libc has incredibly messy way of doing this,
> > +		 * typically requiring -lrt. We just skip all this mess */
> > +		syscall(__NR_clock_gettime, CLOCK_REALTIME, &ts);
>
> This patch works for me, portability concerns notwithstanding. It shouldn't
> be a big deal to have the build system test for -lrt in exactly the same
> way as as -lm. Doing syscalls directly makes me nervous.

Ditto.


Cheers,

-- 
Cristian
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic