From owner-freebsd-hackers Sun Mar 3 17:27:11 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail7.nc.rr.com (fe7.southeast.rr.com [24.93.67.54]) by hub.freebsd.org (Postfix) with ESMTP id 5F82F37B416 for ; Sun, 3 Mar 2002 17:27:03 -0800 (PST) Received: from i8k.babbleon.org ([66.57.85.154]) by mail7.nc.rr.com with Microsoft SMTPSVC(5.5.1877.687.68); Sun, 3 Mar 2002 20:25:41 -0500 Received: by i8k.babbleon.org (Postfix, from userid 111) id A1681BA05; Sun, 3 Mar 2002 20:20:20 -0500 (EST) Content-Type: text/plain; charset="iso-8859-1" From: Brian T.Schellenberger To: Erik Trulsson , Ian Subject: Re: A few questions about a few includes Date: Sun, 3 Mar 2002 20:20:20 -0500 X-Mailer: KMail [version 1.3] Cc: freebsd-hackers References: <20020303180029.GA56041@student.uu.se> In-Reply-To: <20020303180029.GA56041@student.uu.se> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-Id: <20020304012020.A1681BA05@i8k.babbleon.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday 03 March 2002 01:00 pm, Erik Trulsson wrote: > On Sun, Mar 03, 2002 at 10:27:17AM -0700, Ian wrote: > > > In : > > > > > > /* > > > * pargs, used to hold a copy of the command line, if it had a sane > > > * length > > > */ > > > struct pargs { > > > u_int ar_ref; /* Reference count */ > > > u_int ar_length; /* Length */ > > > u_char ar_args[0]; /* Arguments */ > > > }; > > It might be worth mentioning that this trick is not actually allowed > according to the C standard and in principle invokes undefined > behaviour. OTOH, AFAIK the trick does work on all existing compilers, > so while it is not standard-conforming it is quite portable. I can't even imagine how one *would* write a compiler where this would fail--does anybody know the putative risk that led ANSI to "ban" this (IMHO) perfectly-reasonable bahvior? -- Brian T. Schellenberger . . . . . . . bts@wnt.sas.com (work) Brian, the man from Babble-On . . . . bts@babbleon.org (personal) ME --> http://www.babbleon.org http://www.eff.org <-- GOOD GUYS --> http://www.programming-freedom.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message