This is the mail archive of the libc-alpha@sourceware.org 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: PATCH [3/n]: Add __snseconds_t and __SNSECONDS_T_TYPE


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


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