From owner-freebsd-arch@FreeBSD.ORG Wed Feb 27 04:58:57 2008 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 61D09106566B; Wed, 27 Feb 2008 04:58:57 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 194F913C458; Wed, 27 Feb 2008 04:58:56 +0000 (UTC) (envelope-from deischen@freebsd.org) Received: from sea.ntplx.net (sea.ntplx.net [204.213.176.11]) by mail.netplex.net (8.14.2/8.14.2/NETPLEX) with ESMTP id m1R4wtf5023235; Tue, 26 Feb 2008 23:58:55 -0500 (EST) X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Message whitelisted by DRAC access database, not delayed by milter-greylist-4.0 (mail.netplex.net [204.213.176.10]); Tue, 26 Feb 2008 23:58:55 -0500 (EST) Date: Tue, 26 Feb 2008 23:58:55 -0500 (EST) From: Daniel Eischen X-X-Sender: eischen@sea.ntplx.net To: Garrett Wollman In-Reply-To: <200802262251.m1QMp7bV021709@hergotha.csail.mit.edu> Message-ID: References: <200802262251.m1QMp7bV021709@hergotha.csail.mit.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: arch@freebsd.org Subject: Re: Cleaning up FILE in stdio.. X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Eischen List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Feb 2008 04:58:57 -0000 On Tue, 26 Feb 2008, Garrett Wollman wrote: > In article <200802261524.30384.jhb@FreeBSD.org> you write: > >> This is assuming that the contents and layout of FILE are not a >> public ABI (i.e. we malloc the things internally and consumers should >> just treat the pointer value as a cookie and not grub around in the >> internals). > > Most interpreted languages grub around in the internals, as > (historically) do a number of macros. Historically Emacs > did so as well (I suppose you can call it an interpreted language). Yech. I also forgot about the macros in , like __sfeof() and friends. >> Comments? > > I think you have the right idea but this will break the ABI in a way > that can't be fudged with symbol versioning. Well, you can if you add compat symbols for all functions with FILE as an argument. I'd like us to say that the innards of FILE are not part of our ABI, but we would still have to do something to keep at least enough of the ABI for any macros. -- DE