From owner-cvs-src@FreeBSD.ORG Tue Mar 15 15:53:40 2005 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 26E6816A4CF; Tue, 15 Mar 2005 15:53:40 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id BEDD443D58; Tue, 15 Mar 2005 15:53:39 +0000 (GMT) (envelope-from das@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j2FFrd4q075516; Tue, 15 Mar 2005 15:53:39 GMT (envelope-from das@repoman.freebsd.org) Received: (from das@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j2FFrdeF075515; Tue, 15 Mar 2005 15:53:39 GMT (envelope-from das) Message-Id: <200503151553.j2FFrdeF075515@repoman.freebsd.org> From: David Schultz Date: Tue, 15 Mar 2005 15:53:39 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD 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 ... X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Mar 2005 15:53:40 -0000 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