From owner-freebsd-standards Mon Mar 24 3:22: 1 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1D80037B401; Mon, 24 Mar 2003 03:22:00 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B159C43F3F; Mon, 24 Mar 2003 03:21:59 -0800 (PST) (envelope-from tjr@FreeBSD.org) Received: from freefall.freebsd.org (tjr@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2OBLxNS020432; Mon, 24 Mar 2003 03:21:59 -0800 (PST) (envelope-from tjr@freefall.freebsd.org) Received: (from tjr@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2OBLwZ9020428; Mon, 24 Mar 2003 03:21:58 -0800 (PST) Date: Mon, 24 Mar 2003 03:21:58 -0800 (PST) From: "Tim J. Robbins" Message-Id: <200303241121.h2OBLwZ9020428@freefall.freebsd.org> To: tim@robbins.dropbear.id.au, tjr@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/36130: P1003.2 asa utility is missing X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 Synopsis: P1003.2 asa utility is missing State-Changed-From-To: patched->closed State-Changed-By: tjr State-Changed-When: Mon Mar 24 03:21:25 PST 2003 State-Changed-Why: asa utility will not be MFC'd. http://www.freebsd.org/cgi/query-pr.cgi?pr=36130 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Mon Mar 24 9:30:17 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 964B137B401 for ; Mon, 24 Mar 2003 09:30:13 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5F9BE43FBF for ; Mon, 24 Mar 2003 09:30:11 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2OHUBNS035217 for ; Mon, 24 Mar 2003 09:30:11 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2OHUBdi035216; Mon, 24 Mar 2003 09:30:11 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A19637B401 for ; Mon, 24 Mar 2003 09:25:20 -0800 (PST) Received: from mail.cs.tu-berlin.de (mail.cs.tu-berlin.de [130.149.17.13]) by mx1.FreeBSD.org (Postfix) with ESMTP id 508F743FA3 for ; Mon, 24 Mar 2003 09:25:18 -0800 (PST) (envelope-from boris@cs.tu-berlin.de) Received: from fiesta.cs.tu-berlin.de (daemon@fiesta.cs.tu-berlin.de [130.149.17.4]) by mail.cs.tu-berlin.de (8.9.3/8.9.3) with ESMTP id SAA24565 for ; Mon, 24 Mar 2003 18:20:33 +0100 (MET) Received: (from boris@localhost) by fiesta.cs.tu-berlin.de (8.11.6+Sun/8.9.3) id h2OHKXo02811 for FreeBSD-gnats-submit@freebsd.org; Mon, 24 Mar 2003 18:20:33 +0100 (MET) Message-Id: <20030324172032.GA2128@fiesta.cs.tu-berlin.de> Date: Mon, 24 Mar 2003 18:20:33 +0100 From: Boris Nikolaus Reply-To: Boris Nikolaus To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/50257: _POSIX_C_SOURCE is undefined warnings in sys/cdefs.h when -Wundef enabled X-Spam-Status: No, hits=-0.8 required=5.0 tests=RESENT_TO version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 >Number: 50257 >Category: standards >Synopsis: _POSIX_C_SOURCE is undefined warnings in sys/cdefs.h when -Wundef enabled >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Mon Mar 24 09:30:10 PST 2003 >Closed-Date: >Last-Modified: >Originator: Boris Nikolaus >Release: FreeBSD 4.8-RC i386 >Organization: >Environment: System: FreeBSD XXXXXX 4.8-RC FreeBSD 4.8-RC #1: Tue Mar 18 11:49:23 CET 2003 root@XXXXXX:/usr/src/sys/compile/XXXXXX i386 >Description: When sys/cdefs.h is included (e. g. from sys/types.h) and gcc's warning option -Wundef is enabled, you get the following output: In file included from /usr/include/sys/types.h:45, from tst.c:1: /usr/include/sys/cdefs.h:273: warning: `_POSIX_C_SOURCE' is not defined /usr/include/sys/cdefs.h:279: warning: `_POSIX_C_SOURCE' is not defined >How-To-Repeat: echo "#include " >tst.c gcc -c -Wundef tst.c >Fix: Replace #if _POSIX_C_SOURCE == 1 by #if defined(_POSIX_C_SOURCE) && _POSIX_C_SOURCE == 1 (and similar for "== 2") in sys/cdefs.h. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Tue Mar 25 6:30:27 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0D9F637B41A for ; Tue, 25 Mar 2003 06:30:25 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id F3BB343FCB for ; Tue, 25 Mar 2003 06:30:19 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2PEUJNS024866 for ; Tue, 25 Mar 2003 06:30:19 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2PEUJQ3024865; Tue, 25 Mar 2003 06:30:19 -0800 (PST) Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EA39D37B404 for ; Tue, 25 Mar 2003 06:21:36 -0800 (PST) Received: from galileo.poli.hu (galileo.poli.hu [193.224.190.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB95F43F3F for ; Tue, 25 Mar 2003 06:21:30 -0800 (PST) (envelope-from mauzi@galileo.poli.hu) Received: from galileo.poli.hu (localhost [127.0.0.1]) by galileo.poli.hu (8.12.6/8.12.6) with ESMTP id h2PELPIK017407 for ; Tue, 25 Mar 2003 15:21:25 +0100 (CET) (envelope-from mauzi@galileo.poli.hu) Received: (from root@localhost) by galileo.poli.hu (8.12.6/8.12.6/Submit) id h2PELOoo017406 for FreeBSD-gnats-submit@freebsd.org.AVP; Tue, 25 Mar 2003 15:21:24 +0100 (CET) Received: from galileo.poli.hu (localhost [127.0.0.1]) by galileo.poli.hu (8.12.6/8.12.6) with ESMTP id h2PELNIK017397 for ; Tue, 25 Mar 2003 15:21:23 +0100 (CET) (envelope-from mauzi@galileo.poli.hu) Received: (from mauzi@localhost) by galileo.poli.hu (8.12.6/8.12.6/Submit) id h2PELKYh017396; Tue, 25 Mar 2003 15:21:20 +0100 (CET) Message-Id: <200303251421.h2PELKYh017396@galileo.poli.hu> Date: Tue, 25 Mar 2003 15:21:20 +0100 (CET) From: Gergely EGERVARY Reply-To: Gergely EGERVARY To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: standards/50279: finger(1) RFC compliance error - LF+CR instead of CR+LF X-Spam-Status: No, hits=-0.5 required=5.0 tests=MSG_ID_ADDED_BY_MTA_3,RESENT_TO version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 >Number: 50279 >Category: standards >Synopsis: finger(1) RFC compliance error - LF+CR instead of CR+LF >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Tue Mar 25 06:30:19 PST 2003 >Closed-Date: >Last-Modified: >Originator: Gergely EGERVARY >Release: FreeBSD 4.7-RELEASE i386 >Organization: ExpertLAN Computer Co. >Environment: System: FreeBSD galileo.poli.hu 4.7-RELEASE FreeBSD 4.7-RELEASE #4: Thu Mar 6 11:24:41 CET 2003 root@galileo.poli.hu:/usr/src/sys/compile/GALILEO i386 >Description: finger(1) sends LF+CR instead of CR+LF as the end-of-file marker. >How-To-Repeat: try fingering a non-unix machine (eg. VMS) >Fix: fix up neteol string declaration in the source >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Tue Mar 25 7:38:35 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 66E4237B401; Tue, 25 Mar 2003 07:38:33 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 01BEE43F75; Tue, 25 Mar 2003 07:38:33 -0800 (PST) (envelope-from roam@FreeBSD.org) Received: from freefall.freebsd.org (roam@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2PFcWNS042682; Tue, 25 Mar 2003 07:38:32 -0800 (PST) (envelope-from roam@freefall.freebsd.org) Received: (from roam@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2PFcWYo042678; Tue, 25 Mar 2003 07:38:32 -0800 (PST) Date: Tue, 25 Mar 2003 07:38:32 -0800 (PST) From: Peter Pentchev Message-Id: <200303251538.h2PFcWYo042678@freefall.freebsd.org> To: mauzi@expertlan.hu, roam@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/50279: finger(1) RFC compliance error - LF+CR instead of CR+LF X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 Synopsis: finger(1) RFC compliance error - LF+CR instead of CR+LF State-Changed-From-To: open->closed State-Changed-By: roam State-Changed-When: Tue Mar 25 07:36:29 PST 2003 State-Changed-Why: This was fixed shortly after the release of FreeBSD 4.7, on December 2nd, 2002 in -CURRENT, and on December 16th, 2002 in -STABLE, in revisions 1.22 and 1.12.2.4 of src/usr.bin/finger/net.c respectively. Stiik, thanks for striving for a better FreeBSD by reporting this problem! http://www.freebsd.org/cgi/query-pr.cgi?pr=50279 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Tue Mar 25 7:40:10 2003 Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8802D37B401 for ; Tue, 25 Mar 2003 07:40:08 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B2A643F75 for ; Tue, 25 Mar 2003 07:40:08 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.6/8.12.6) with ESMTP id h2PFe8NS042781 for ; Tue, 25 Mar 2003 07:40:08 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.6/8.12.6/Submit) id h2PFe7Di042780; Tue, 25 Mar 2003 07:40:07 -0800 (PST) Date: Tue, 25 Mar 2003 07:40:07 -0800 (PST) Message-Id: <200303251540.h2PFe7Di042780@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: standards/50279: finger(1) RFC compliance error - LF+CR instead of CR+LF Reply-To: Peter Pentchev X-Spam-Status: No, hits=0.0 required=5.0 tests=none version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 The following reply was made to PR standards/50279; it has been noted by GNATS. From: Peter Pentchev To: mauzi@expertlan.hu Cc: bug-followup@FreeBSD.org Subject: Re: standards/50279: finger(1) RFC compliance error - LF+CR instead of CR+LF Date: Tue, 25 Mar 2003 17:37:34 +0200 On Tue, Mar 25, 2003 at 07:38:32AM -0800, Peter Pentchev wrote: > Synopsis: finger(1) RFC compliance error - LF+CR instead of CR+LF > > State-Changed-From-To: open->closed > State-Changed-By: roam > State-Changed-When: Tue Mar 25 07:36:29 PST 2003 > State-Changed-Why: > This was fixed shortly after the release of FreeBSD 4.7, > on December 2nd, 2002 in -CURRENT, and on December 16th, 2002 in > -STABLE, in revisions 1.22 and 1.12.2.4 of src/usr.bin/finger/net.c > respectively. > > Stiik, thanks for striving for a better FreeBSD by reporting this problem! Erm.. This was meant to say 'Still', not 'Stiik'... G'luck, Peter -- Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence contradicts itself - or rather - well, no, actually it doesn't! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message From owner-freebsd-standards Thu Mar 27 12:14:18 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 22FD037B401 for ; Thu, 27 Mar 2003 12:14:16 -0800 (PST) Received: from HAL9000.homeunix.com (12-233-57-131.client.attbi.com [12.233.57.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C06A43F85 for ; Thu, 27 Mar 2003 12:14:15 -0800 (PST) (envelope-from das@FreeBSD.org) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id h2RKEDah017977 for ; Thu, 27 Mar 2003 12:14:13 -0800 (PST) (envelope-from das@FreeBSD.org) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id h2RKEDs1017976 for standards@FreeBSD.ORG; Thu, 27 Mar 2003 12:14:13 -0800 (PST) (envelope-from das@FreeBSD.org) Date: Thu, 27 Mar 2003 12:14:13 -0800 From: David Schultz To: standards@FreeBSD.org Subject: printf changes to fix bugs, support long double, etc Message-ID: <20030327201413.GA17165@HAL9000.homeunix.com> Mail-Followup-To: standards@FreeBSD.ORG Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, hits=-7.0 required=5.0 tests=AWL version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) 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 I've reworked the floating point code in printf() with the primary goal of supporting long double floating point formats. This had the side-effect of fixing a number of bugs and adding some features. Since the changes are rather extensive, I would appreciate review of the patches, which are available at: http://www.FreeBSD.org/~das/printf.diff The significant changes are: - Bugs involving '%F', corner cases of '#' and 'g' format specifiers, and the '.*' precision specifier have been fixed. - Some code was redundant, or compensated for dtoa misfeatures that have not existed for years. I have eliminated such cruft and tried to clean things up, rely less on implicit state, etc. - We used to round long double arguments to double. Now we print them properly. (I can trivially #ifdef WANT_LONG_DOUBLE the long double support if people want that, but I'm guessing the #ifdef FLOATING_POINT will be sufficient for embedded systems and such.) - Added support for the "'" specifier to print thousands' grouping characters in a locale-dependent manner. This was easy to add, but the logic is a little complicated. It would be great if people who use a locale with grouping characters could test. - Some buffer sizes have been updated. In particular, the buffer in exponent() should be ~5 characters wide instead of 308. The 'buf' array in printf() is no longer used for floating point, so it only needs to be big enough to hold integer digits (40 bytes instead of 656.) The sizes should really be MD, but I overestimated instead. If this bothers anyone, I'm open to suggestions. - I have not implemented hexadecimal floating point (%[aA]), since I think someone else is working on that, but I have set things up nicely to facilitate that. Converting to hex will be easy since no rounding is needed; the mantissa can be processed one nibble at a time. Once that is done, our printf() should be C99-compliant. I will be out of town until Sunday or Monday, and I may not be able to respond to any comments until I return. P.S. I have not yet touched *fwprintf() beyond what was necessary to make the code it continue to compile. The changes to it will essentially mirror the changes to printf(), although the buffer sizes may merit special consideration. P.P.S. Long doubles on sparc64 don't work yet due to a minor bug. Namely, gdtoa() expects the array of bits you pass it containing the mantissa to have an explicit leading 1 if the number of normalized. I just need a small MD fix, which I will get to when I return. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-standards" in the body of the message