This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Linux getdents.c is not aliasing safe
- From: Daniel Jacobowitz <dan at debian dot org>
- To: Roland McGrath <roland at redhat dot com>, Andreas Schwab <schwab at suse dot de>,libc-alpha at sources dot redhat dot com, debian-glibc at lists dot debian dot org
- Date: Mon, 4 Nov 2002 16:41:50 -0500
- Subject: Re: Linux getdents.c is not aliasing safe
- References: <20021030010405.GA16098@nevyn.them.org> <200211030348.gA33mOG15933@magilla.sf.frob.com> <20021103171225.GA25543@nevyn.them.org>
On Sun, Nov 03, 2002 at 12:12:25PM -0500, Daniel Jacobowitz wrote:
> On Sat, Nov 02, 2002 at 07:48:24PM -0800, Roland McGrath wrote:
> > I've put in a fix similar to yours but with cosmetic differences.
> > I believe it is valid C99.
>
> Thanks, that's much cleaner than my solution. It looks safe to me;
> I'll give it a try.
I'm not sure that it's valid C99 - my impression is that it isn't, and
the only valid way would be to have a function return the DIRENT_TYPE
by value - but it's valid GNU C and it fixes the bug I was chasing.
Thanks!
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer