Date: Tue, 15 Mar 2005 15:53:39 +0000 (UTC) From: David Schultz <das@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/share/man/man3 Makefile src/lib/libc/alpha/gen Makefile.inc fpsetsticky.c src/lib/libc/amd64/gen Makefile.inc fpsetsticky.c src/lib/libc/powerpc/gen Makefile.inc fpsetsticky.c src/lib/libc/softfloat Makefile.inc src/lib/libc/sparc64/gen ... Message-ID: <200503151553.j2FFrdeF075515@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
das 2005-03-15 15:53:39 UTC
FreeBSD src repository
Modified files:
share/man/man3 Makefile
lib/libc/alpha/gen Makefile.inc
lib/libc/amd64/gen Makefile.inc
lib/libc/powerpc/gen Makefile.inc
lib/libc/softfloat Makefile.inc
lib/libc/sparc64/gen Makefile.inc
sys/amd64/include ieeefp.h
sys/i386/include ieeefp.h
Removed files:
lib/libc/alpha/gen fpsetsticky.c
lib/libc/amd64/gen fpsetsticky.c
lib/libc/powerpc/gen fpsetsticky.c
lib/libc/sparc64/gen fpsetsticky.c
Log:
Remove fpsetsticky(). This was added for SysV compatibility, but due
to mistakes from day 1, it has always had semantics inconsistent with
SVR4 and its successors. In particular, given argument M:
- On Solaris and FreeBSD/{alpha,sparc64}, it clobbers the old flags
and *sets* the new flag word to M. (NetBSD, too?)
- On FreeBSD/{amd64,i386}, it *clears* the flags that are specified in M
and leaves the remaining flags unchanged (modulo a small bug on amd64.)
- On FreeBSD/ia64, it is not implemented.
There is no way to fix fpsetsticky() to DTRT for both old FreeBSD apps
and apps ported from other operating systems, so the best approach
seems to be to kill the function and fix any apps that break. I
couldn't find any ports that use it, and any such ports would already
be broken on FreeBSD/ia64 and Linux anyway.
By the way, the routine has always been undocumented in FreeBSD,
except for an MLINK to a manpage that doesn't describe it. This
manpage has stated since 5.3-RELEASE that the functions it describes
are deprecated, so that must mean that functions that it is *supposed*
to describe but doesn't are even *more* deprecated. ;-)
Note that fpresetsticky() has been retained on FreeBSD/i386. As far
as I can tell, no other operating systems or ports of FreeBSD
implement it, so there's nothing for it to be inconsistent with.
PR: 75862
Suggested by: bde
Revision Changes Path
1.16 +1 -1 src/lib/libc/alpha/gen/Makefile.inc
1.6 +0 -62 src/lib/libc/alpha/gen/fpsetsticky.c (dead)
1.29 +1 -1 src/lib/libc/amd64/gen/Makefile.inc
1.2 +0 -8 src/lib/libc/amd64/gen/fpsetsticky.c (dead)
1.8 +1 -1 src/lib/libc/powerpc/gen/Makefile.inc
1.2 +0 -57 src/lib/libc/powerpc/gen/fpsetsticky.c (dead)
1.2 +1 -1 src/lib/libc/softfloat/Makefile.inc
1.12 +1 -1 src/lib/libc/sparc64/gen/Makefile.inc
1.2 +0 -30 src/lib/libc/sparc64/gen/fpsetsticky.c (dead)
1.35 +1 -2 src/share/man/man3/Makefile
1.13 +0 -20 src/sys/amd64/include/ieeefp.h
1.11 +0 -1 src/sys/i386/include/ieeefp.h
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503151553.j2FFrdeF075515>
