struct stat.h with nanosecond resolution

Ulrich Drepper drepper@redhat.com
Mon Dec 2 02:55:00 GMT 2002


Andi Kleen wrote:

> Solaris makes it conditional on _XOPEN_SOURCE || _POSIX_SOURCE 
> 
> (struct timespec if these are not defined, otherwise _timespec) 
> 
> Probably a good idea, to keep maximum type compatibility.


No, this is nonsense.  There is absolutely no need for any #ifdef.

Use __timespec_t.

-- 
--------------.                        ,-.            444 Castro Street
Ulrich Drepper \    ,-----------------'   \ Mountain View, CA 94041 USA
Red Hat         `--' drepper at redhat.com `---------------------------



More information about the Libc-alpha mailing list