This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Misc. bits (3/5)


Alfred M. Szmidt wrote:
> --- sysdeps/unix/clock_gettime.c
> +++ sysdeps/unix/clock_gettime.c
> @@ -101,6 +101,14 @@
>  #endif
>  
>  #ifndef HANDLED_REALTIME
> +#define HANDLE_REALTIME \
> +      do {								      \
> +	struct timeval tv;						      \
> +	TIMESPEC_TO_TIMEVAL (&tv, tp);					      \
> +									      \
> +	retval = settimeofday (&tv, NULL);				      \

This is the implementation of clock_gettime and you use settimeofday?

And why define a macro which is not defined and only used once afterward?

I checked in a better patch, completely untested though, since none of
my platforms is so archaic.

-- 
â Ulrich Drepper â Red Hat, Inc. â 444 Castro St â Mountain View, CA â

Attachment: signature.asc
Description: OpenPGP digital signature


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]