From owner-freebsd-current Fri Mar 22 16:11:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from mailman.zeta.org.au (mailman.zeta.org.au [203.26.10.16]) by hub.freebsd.org (Postfix) with ESMTP id 782A837B417 for ; Fri, 22 Mar 2002 16:11:13 -0800 (PST) Received: from bde.zeta.org.au (bde.zeta.org.au [203.2.228.102]) by mailman.zeta.org.au (8.9.3/8.8.7) with ESMTP id LAA03039; Sat, 23 Mar 2002 11:08:32 +1100 Date: Sat, 23 Mar 2002 11:07:07 +1100 (EST) From: Bruce Evans X-X-Sender: To: Garrett Wollman Cc: "M. Warner Losh" , Subject: Re: X11 breakage In-Reply-To: <200203221728.g2MHSrI85002@khavrinen.lcs.mit.edu> Message-ID: <20020323110121.B20153-100000@gamplex.bde.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 22 Mar 2002, Garrett Wollman wrote: > < said: > > > -int ioctl(int, unsigned long, ...); > > +int ioctl __P((int, unsigned long, ...)); > > int (ioctl)(int, unsigned long, ...); > > is the ISO-sanctioned way. It is just a more robust hack when used in system headers: #define ioctl you lose #include gives undefined behaviour which happens to break both of the above. Bruce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message