Subject: Re: magic symlinks: uid keyword translation
To: None <tech-kern@NetBSD.org>
From: Alan Barrett <firstname.lastname@example.org>
Date: 10/31/2006 11:49:52
On Tue, 31 Oct 2006, Alan Barrett wrote:
> On Tue, 31 Oct 2006, der Mouse wrote:
> > >> printf("%s", uid_to_string_buf(uid).str); /* not legal */
> > > What's wrong with that? If a function returns a struct or union, you
> > > are allowed to use just one member.
> > Even when that member is an array, which is "used" by decaying it to a
> > pointer to its  element?
> I think the pointer would become invalid after the next sequence point,
> but I am not sure.
Hmm, perhaps the pointer becomes invalid at the sequence point between
calculating the args for printf and actually calling printf. That would
--apb (Alan Barrett)