Linux getdents.c is not aliasing safe
Wolfram Gloger
Wolfram.Gloger@dent.med.uni-muenchen.de
Wed Oct 30 03:46:00 GMT 2002
Hi,
> But that intermediate buffer is in registers (on sane arches), while using
> memcpy would mean at least with current compilers memory.
True, I just consider that not so bad in this particular case.
> glibc requires gcc (even 3.2+) to compile anyway, so IMHO just using the
> union as drow posted seems best to me.
I was just surprised that there is such a gcc extension, I can't even find
it in
http://gcc.gnu.org/onlinedocs/gcc-3.2/gcc/C-Extensions.html#C%20Extensions
at quick glance.
Regards,
Wolfram.
More information about the Libc-alpha
mailing list