From owner-freebsd-arch Thu Sep 12 21: 4: 7 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A288737B498 for ; Thu, 12 Sep 2002 21:04:02 -0700 (PDT) Received: from khavrinen.lcs.mit.edu (khavrinen.lcs.mit.edu [18.24.4.193]) by mx1.FreeBSD.org (Postfix) with ESMTP id 14A2643E77 for ; Thu, 12 Sep 2002 21:04:02 -0700 (PDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: from khavrinen.lcs.mit.edu (localhost [IPv6:::1]) by khavrinen.lcs.mit.edu (8.12.3/8.12.5) with ESMTP id g8D440Vo094246 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Fri, 13 Sep 2002 00:04:01 -0400 (EDT) (envelope-from wollman@khavrinen.lcs.mit.edu) Received: (from wollman@localhost) by khavrinen.lcs.mit.edu (8.12.3/8.12.5/Submit) id g8D440RF094243; Fri, 13 Sep 2002 00:04:00 -0400 (EDT) (envelope-from wollman) Date: Fri, 13 Sep 2002 00:04:00 -0400 (EDT) From: Garrett Wollman Message-Id: <200209130404.g8D440RF094243@khavrinen.lcs.mit.edu> To: arch@FreeBSD.org Subject: Potential fts(3) ABI breakage Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I'd like to break the ABI of fts(3) to remove its dependence on the struct hack, and thereby provide for the possibility of extending FTSENT to contain additional data (such as extended attributes). (Once this has been done, it should never be necessary to do so again.) anyone aware of non-system applications using this interface? Any other objections? Background: currently, FTSENT uses the struct hack to provide contiguous storage for the filename immediately following the end of the structure. This makes it impossible to extend the structure without breaking ABI compatibility. The change I plan to make will be to turn fts_path[] into *fts_path, without changing how memory is allocated; this will make future extensions possible without breaking the ABI. Only a very small (sizeof(FTSENT *)) increase in overhead will be required. -GAWollman To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message