1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-23 11:18:54 +00:00
freebsd/sys/i386
David Schultz 7b74e4a759 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
2005-03-15 15:53:39 +00:00
..
acpica netchild's mega-patch to isolate compiler dependencies into a central 2005-03-02 21:33:29 +00:00
bios /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 22:18:23 +00:00
compile
conf The NVE driver doesn't cleanly compile on PAE. 2005-03-13 17:39:19 +00:00
cpufreq Make a pass through all drivers checking specs for desired behavior on 2005-02-27 02:43:02 +00:00
i386 Guard against an integer underflow that could cause busdma to eat up all 2005-03-12 07:01:53 +00:00
ibcs2 correct bounds check of fd parameter 2005-02-25 20:15:11 +00:00
include Remove fpsetsticky(). This was added for SysV compatibility, but due 2005-03-15 15:53:39 +00:00
isa Whitespace sync with amd64. (Rather than re-add the extra blank lines 2005-03-11 22:10:25 +00:00
linux Regen after addition of linux_nosys handler. 2005-03-07 00:23:58 +00:00
pci Make a bunch of malloc types static. 2005-02-10 12:02:37 +00:00
svr4 /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 22:18:23 +00:00
Makefile