PATCH [3/n]: Add __snseconds_t and __SNSECONDS_T_TYPE

Russ Allbery rra@stanford.edu
Thu Mar 15 22:28:00 GMT 2012


Paul Eggert <eggert@cs.ucla.edu> writes:

> It would break applications that do anything like this:

>   struct timespec t;
>   long *p = &t->tv_nsec;

And I think similarly, but somewhat more trickily:

    int n = 1;
    printf("%ld %d", t.tv_nsec, n);

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>



More information about the Libc-alpha mailing list