Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 13 Sep 2002 00:04:00 -0400 (EDT)
From:      Garrett Wollman <wollman@lcs.mit.edu>
To:        arch@FreeBSD.org
Subject:   Potential fts(3) ABI breakage
Message-ID:  <200209130404.g8D440RF094243@khavrinen.lcs.mit.edu>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209130404.g8D440RF094243>