cvs commit: src/lib/msun Symbol.map
das at FreeBSD.ORG
Thu Dec 13 22:22:42 PST 2007
On Thu, Dec 13, 2007, Alexander Kabaev wrote:
> > http://cvsweb.FreeBSD.org/src/lib/msun/Symbol.map.diff?r1=1.5&r2=1.6
> This is just wrong IMHO. New exported symbols should not be introduced
> carelessly and certainly not should be added to the same namespace that
> exists in 7.0. Either we add these to 7.0 before it releases, or they
> should go into their own section which will start collecting all new
> libc symbols to appear in 8.0.
> Daniel, Yar - what is your take on this?
Well, I don't particularly care, but I'll explain why I didn't
think it was important.
The symbols I added are reserved for use in the C math library
according to C99. Hence, any valid C program compiled against
libm.so.5 will not be affected.
Furthermore, I've been adding C99 functions to libc/libm little by
little for years. Occasionally people request that I MFC some of
them, and I do. Some of them get MFC'd before X.1-RELEASE, some of
them get MFC'd before X.2-RELEASE, and so on. Of course, if these
symbols get new versions when they get MFC'd to -STABLE, they need
to be versioned in -CURRENT as well.
In other words, the payoff for being pedantic is low, and the cost
is moderately high. So while I don't feel strongly about this, it
seems easier to declare that programs that abuse reserved C99 symbols
are not guaranteed to work, neither now nor in the future.
More information about the cvs-all