This is the mail archive of the
libc-alpha@sourceware.cygnus.com
mailing list for the glibc project.
Re: Single UNIX Spec <time.h> functions.
- To: Ulrich Drepper <drepper at cygnus dot com>
- Subject: Re: Single UNIX Spec <time.h> functions.
- From: Kaz Kylheku <kaz at ashi dot footprints dot net>
- Date: Wed, 16 Feb 2000 14:46:14 -0800 (PST)
- cc: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>, Andreas Jaeger <aj at suse dot de>
On 16 Feb 2000, Ulrich Drepper wrote:
> Date: 16 Feb 2000 14:29:19 -0800
> From: Ulrich Drepper <drepper@redhat.com>
> Reply-To: Ulrich Drepper <drepper@cygnus.com>
> To: Kaz Kylheku <kaz@ashi.footprints.net>
> Cc: libc-alpha Mailinglist <libc-alpha@sourceware.cygnus.com>,
Andreas Jaeger <aj@suse.de>
> Subject: Re: Single UNIX Spec <time.h> functions.
>
> Kaz Kylheku <kaz@ashi.footprints.net> writes:
>
> > While we are on the subject of struct timespec and nanosleep and all that,
> > how about implementing these functions:
>
> There are kernel patches floating around but none has been accepted yet.
I think you can do some of these things without kernel patches. Like
clock_gettime() can just be a wrapper for the gettimeofday() function
which converts the time from struct timeval to struct timespec. That's
what we do anyway whenever we need a timespec for a condition variable
wait. :)