From owner-freebsd-standards Tue Jan 21 10: 9:19 2003 Delivered-To: freebsd-standards@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3813237B401 for ; Tue, 21 Jan 2003 10:09:18 -0800 (PST) Received: from ncsmtp02.ogw.rr.com (ncsmtp02.ogw.rr.com [24.93.67.83]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C97E43F5F for ; Tue, 21 Jan 2003 10:09:17 -0800 (PST) (envelope-from ryany@pobox.com) Received: from mail6.nc.rr.com (fe6 [24.93.67.53]) by ncsmtp02.ogw.rr.com (8.12.5/8.12.2) with ESMTP id h0LI8Fup013085 for ; Tue, 21 Jan 2003 13:08:16 -0500 (EST) Received: from cheshire ([24.25.23.20]) by mail6.nc.rr.com with Microsoft SMTPSVC(5.5.1877.757.75); Tue, 21 Jan 2003 13:09:36 -0500 Date: Tue, 21 Jan 2003 13:07:37 -0500 From: Ryan Younce To: freebsd-standards@freebsd.org Subject: math.h: first run Message-Id: <20030121130737.6be86e80.ryany@pobox.com> X-Mailer: Sylpheed version 0.8.9 (GTK+ 1.2.10; i386-portbld-freebsd4.7) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-standards@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG This is a first-go attempt at reorganizing math.h to include C99 and POSIX 2001 additions. The file was rather tricky (or at least to somebody who wasn't well versed with *_SOURCE -> *_VISIBLE transitions), so I welcome any corrections, suggestions, recommendations, opinions, etc...especially with regards to the preprocessor condition logic. Most of the BSD functions not appearing under the_ANSI_SOURCE or_POSIX_SOURCE conditions (which assumed non POSIX and non C89 functions) were moved into __BSD_VISIBLE or__ISO_C_VISIBLE >= 1999 if C99 supported them. The rest were lumped under__BSD_VISIBLE, except for XSI extensions, which were lumped under __XSI_VISIBLE ||__POSIX_C_SOURCE >= 200112 || __BSD_VISIBLE isinf() and isnan() are still declared under the __BSD_VISIBLE or __ISO_C_VISIBLE >= 1999 conditions but they need reimplementing as macros per C99. All new function prototypes are commented, as well as the macros that are likely MD. (In reordering this file, however, a number of the comments grouped over particular functions ("BSD Math Library entry points" comes to mind) were lost. If they are important, I can put them back in, with likely redundancy due to the ordering). The file is located at: http://www.tribug.org/~ryan/freebsd.math.h Ryan Younce To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message