Date: Fri, 12 Sep 1997 12:37:16 -0400 (EDT) From: Bradley Dunn <bradley@dunn.org> To: "Ron G. Minnich" <rminnich@Sarnoff.COM> Cc: hackers@FreeBSD.ORG Subject: Re: amusing problem with varargs Message-ID: <Pine.BSF.3.96.970912122930.5295A-100000@ns2.harborcom.net> In-Reply-To: <Pine.SUN.3.91.970912095226.28107G-100000@terra>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 Sep 1997, Ron G. Minnich wrote: > will it fail on other freebsd's, esp. 3.x? > > The problem is in the following assertion (from stdarg.h) > #define va_arg(ap, type) \ > ((type *)(ap += sizeof(type) < sizeof(int) ? \ > (abort(), 0) : sizeof(type)))[-1] > > It fails because mode_t is 16 bits. This is fixed in 2.2-STABLE and 3.0-CURRENT. See http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/i386/include/stdarg.h pbd -- "Seems she thought of me as some mystic, fatalistic, mystical guru Me, I haven't got a clue." -- Tears for Fears, "Cold"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.96.970912122930.5295A-100000>