[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: NULL struct to futimes does not return current date/time on GNU/Hurd
From: |
Samuel Thibault |
Subject: |
Re: NULL struct to futimes does not return current date/time on GNU/Hurd |
Date: |
Tue, 10 Oct 2006 14:17:50 +0200 |
User-agent: |
Mutt/1.5.11 |
Samuel Thibault, le Tue 10 Oct 2006 11:35:12 +0200, a écrit :
> Roland McGrath, le Tue 10 Oct 2006 02:29:12 -0700, a écrit :
> > Thanks for the clarification. I committed a libc change that should work.
>
> Thanks. Unions make the "may alias" link, indeed.
Oops, union fields indeed alias between each other (that's a gcc
extension of the C standard), but the remaining cast is still doubtful:
const union tv *u = (const union tv *) tvp;
gcc won't consider that u and tvp may alias. Now, it happens that this
works, since glibc is currently not compiled with optimization across
modules, hence tvp is always correctly filled by the caller.
Samuel