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: struct stat.h with nanosecond resolution


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 `---------------------------


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