From owner-freebsd-standards@FreeBSD.ORG Mon Sep 24 11:08:40 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EBB116A4DC for ; Mon, 24 Sep 2007 11:08:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 495EE13C458 for ; Mon, 24 Sep 2007 11:08:40 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8OB8eiQ064332 for ; Mon, 24 Sep 2007 11:08:40 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8OB8dmd064328 for freebsd-standards@FreeBSD.org; Mon, 24 Sep 2007 11:08:39 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 24 Sep 2007 11:08:39 GMT Message-Id: <200709241108.l8OB8dmd064328@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-standards@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2007 11:08:40 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/25542 standards /bin/sh: null char in quoted string o kern/46239 standards posix semaphore implementation errors o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/82654 standards C99 long double math functions are missing o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o stand/114910 standards getaddrinfo() fails to set ai_canonname 6 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o bin/21519 standards sys/dir.h should be deprecated some more o bin/24390 standards Replacing old dir-symlinks when using /bin/ln s stand/24590 standards timezone function not compatible witn Single Unix Spec s kern/28260 standards UIO_MAXIOV needs to be made public s stand/36076 standards Implementation of POSIX fuser command o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings p stand/41576 standards POSIX compliance of ln(1) o stand/44425 standards getcwd() succeeds even if current dir has perm 000. o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/54833 standards [pcvt] more pcvt deficits o stand/54839 standards [pcvt] pcvt deficits p stand/55112 standards glob.h, glob_t's gl_pathc should be "size_t", not "int o stand/56476 standards cd9660 unicode support simple hack o stand/58676 standards grantpt(3) alters storage used by ptsname(3) s stand/62858 standards malloc(0) not C99 compliant s kern/64875 standards [libc] [patch] [feature request] add a system call: fd o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- o stand/66531 standards _gettemp uses a far smaller set of filenames than docu o stand/70813 standards [PATCH] ls(1) not Posix compliant o stand/72006 standards floating point formating in non-C locales o stand/79056 standards regex(3) regression tests a stand/80293 standards sysconf() does not support well-defined unistd values o stand/81287 standards [PATCH]: fingerd(8) might send a line not ending in CR o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/85080 standards output of long double subnormals (with printf) is wron o stand/92360 standards [headers] [patch] Missing TAB3 in kernel headers o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/96016 standards [headers] clock_getres et al should be in o stand/96236 standards [PATCH] [POSIX] sed.1 incorrectly describes a function p stand/99517 standards Missing SIGRTMIN and SIGRTMAX signals o stand/99960 standards [Patch] make(1): Add -p flag o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/104841 standards [libm] [patch] C99 long double square root. o stand/107561 standards [patch] Missing SUS function tcgetsid() o kern/114578 standards [libc] wide character printing using swprintf(dst, n, o stand/114633 standards /etc/rc.subr: line 511: omits a quotation mark: "force o stand/116081 standards make does not work with the directive sinclude o stand/116221 standards SUS issue -- FreeBSD has not flag WNOWAIT for wait*() 40 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Sep 25 18:46:55 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 339F816A41A for ; Tue, 25 Sep 2007 18:46:55 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from tarsier.geekcn.org (tarsier.geekcn.org [210.51.165.229]) by mx1.freebsd.org (Postfix) with ESMTP id 99E4F13C44B for ; Tue, 25 Sep 2007 18:46:54 +0000 (UTC) (envelope-from delphij@delphij.net) Received: from localhost (tarsier.geekcn.org [210.51.165.229]) by tarsier.geekcn.org (Postfix) with ESMTP id 08286EB79B0; Wed, 26 Sep 2007 02:31:11 +0800 (CST) X-Virus-Scanned: amavisd-new at geekcn.org Received: from tarsier.geekcn.org ([210.51.165.229]) by localhost (mail.geekcn.org [210.51.165.229]) (amavisd-new, port 10024) with ESMTP id 2xNT3izfmzjW; Wed, 26 Sep 2007 02:30:59 +0800 (CST) Received: from LI-Xins-MacBook.local (71.5.7.139.ptr.us.xo.net [71.5.7.139]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tarsier.geekcn.org (Postfix) with ESMTP id 6A7BFEB7995; Wed, 26 Sep 2007 02:30:58 +0800 (CST) DomainKey-Signature: a=rsa-sha1; s=default; d=delphij.net; c=nofws; q=dns; h=message-id:date:from:reply-to:organization:user-agent: mime-version:to:subject:references:in-reply-to:x-enigmail-version:openpgp:content-type; b=YPxvcEDiBiBuEpr9dsfMos+J/PZGm2kPYUOEZuBKeGLpXXKh+m3rhY/upyjNRKU1h WCX4d3HKsKqP4hkVhZwUg== Message-ID: <46F953C4.1030707@delphij.net> Date: Tue, 25 Sep 2007 11:30:28 -0700 From: LI Xin Organization: The FreeBSD Project User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: freebsd-stable@FreeBSD.ORG, torfinn.ingolfsen@broadpark.no References: <200709251743.l8PHhvlP012244@lurza.secnetix.de> In-Reply-To: <200709251743.l8PHhvlP012244@lurza.secnetix.de> X-Enigmail-Version: 0.95.3 OpenPGP: url=http://www.delphij.net/delphij.asc Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig75FE4668FDDB8DE1C013E831" X-Mailman-Approved-At: Wed, 26 Sep 2007 12:40:36 +0000 Cc: Subject: Re: rm(1) bug, possibly serious X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: d@delphij.net List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 18:46:55 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig75FE4668FDDB8DE1C013E831 Content-Type: multipart/mixed; boundary="------------000106020508020706020709" This is a multi-part message in MIME format. --------------000106020508020706020709 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I think this is a bug, here is a fix obtained from NetBSD. The reasoning (from NetBSD's rm.c,v 1.16): Strip trailing slashes of operands in checkdot(). POSIX.2 requires that if "." or ".." are specified as the basename portion of an operand, a diagnostic message be written to standard error, etc. We strip the slashes because POSIX.2 defines basename as the final portion of a pathname after trailing slashes have been removed. This also makes rm "perform actions equivalent to" the POSIX.1 rmdir() and unlink() functions when removing directories and files, even when they do not follow POSIX.1's pathname resolution semantics (which require trailing slashes be ignored). If nobody complains about this I will request for commit approval from re= @. Cheers, --=20 Xin LI http://www.delphij.net/ FreeBSD - The Power to Serve! --------------000106020508020706020709 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="rm-posix.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline; filename="rm-posix.diff" Index: rm.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/bin/rm/rm.c,v retrieving revision 1.58 diff -u -p -r1.58 rm.c --- rm.c 31 Oct 2006 02:22:36 -0000 1.58 +++ rm.c 25 Sep 2007 18:26:52 -0000 @@ -558,6 +558,14 @@ check2(char **argv) return (first =3D=3D 'y' || first =3D=3D 'Y'); } =20 +/* + * POSIX.2 requires that if "." or ".." are specified as the basename + * portion of an operand, a diagnostic message be written to standard + * error and nothing more be done with such operands. + * + * Since POSIX.2 defines basename as the final portion of a path after + * trailing slashes have been removed, we'll remove them here. + */ #define ISDOT(a) ((a)[0] =3D=3D '.' && (!(a)[1] || ((a)[1] =3D=3D '.' &&= !(a)[2]))) void checkdot(char **argv) @@ -567,10 +575,17 @@ checkdot(char **argv) =20 complained =3D 0; for (t =3D argv; *t;) { + /* strip trailing slashes */ + p =3D strrchr(*t, '\0'); + while (--p > *t && *p =3D=3D '/') + *p =3D '\0'; + + /* extract basename */ if ((p =3D strrchr(*t, '/')) !=3D NULL) ++p; else p =3D *t; + if (ISDOT(p)) { if (!complained++) warnx("\".\" and \"..\" may not be removed"); --------------000106020508020706020709-- --------------enig75FE4668FDDB8DE1C013E831 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFG+VPFOfuToMruuMARCg5cAJ4o9qjqfuupAuXj4Zl2/E5qdxGXHQCgi68U E9tNjSg+Y83rzdt3HU+mh5g= =tjXg -----END PGP SIGNATURE----- --------------enig75FE4668FDDB8DE1C013E831-- From owner-freebsd-standards@FreeBSD.ORG Wed Sep 26 18:09:40 2007 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5B86716A41A for ; Wed, 26 Sep 2007 18:09:40 +0000 (UTC) (envelope-from mail@sysfault.org) Received: from smtprelay03.ispgateway.de (smtprelay03.ispgateway.de [80.67.18.15]) by mx1.freebsd.org (Postfix) with ESMTP id C51AE13C47E for ; Wed, 26 Sep 2007 18:09:39 +0000 (UTC) (envelope-from mail@sysfault.org) Received: (qmail 15368 invoked from network); 26 Sep 2007 18:09:37 -0000 Received: from unknown (HELO medusa.sysfault.org) (936934@[89.182.4.18]) (envelope-sender ) by smtprelay03.ispgateway.de (qmail-ldap-1.03) with AES256-SHA encrypted SMTP for ; 26 Sep 2007 18:09:37 -0000 Received: from localhost ([127.0.0.1] helo=medusa.sysfault.org) by medusa.sysfault.org with esmtp (Exim 4.68 (FreeBSD)) (envelope-from ) id 1IabN0-0000ZY-3K for freebsd-standards@freebsd.org; Wed, 26 Sep 2007 20:12:23 +0200 Received: (from marcus@localhost) by medusa.sysfault.org (8.14.1/8.14.1/Submit) id l8QICJRk002203 for freebsd-standards@freebsd.org; Wed, 26 Sep 2007 20:12:19 +0200 (CEST) (envelope-from marcus) Date: Wed, 26 Sep 2007 20:12:18 +0200 From: Marcus von Appen To: freebsd-standards@freebsd.org Message-ID: <20070926181218.GB1117@medusa.sysfault.org> Mail-Followup-To: freebsd-standards@freebsd.org References: <20070920220952.GA1083@medusa.sysfault.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aVD9QWMuhilNxW9f" Content-Disposition: inline In-Reply-To: <20070920220952.GA1083@medusa.sysfault.org> User-Agent: Mutt/1.5.16 (2007-06-09) X-Spam-Score: -4.4 (----) Subject: Re: cflow and assembler sources X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Marcus von Appen List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 18:09:40 -0000 --aVD9QWMuhilNxW9f Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Basic nasm syntax support is done now. It'd be nice, if anyone having some more complex nasm code lying around can give it a try. As with the #include directives in C, preprocessor directives such as %include, %define, %macro, ... are silently ignored. Regards Marcus --aVD9QWMuhilNxW9f Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFG+qECo/JpszXavhwRAuKnAJ93hHmskqNz6opqvbrqq40dNnWKVACfZM6z U8C6ceSsgCSwPareTnT09WA= =q0bm -----END PGP SIGNATURE----- --aVD9QWMuhilNxW9f-- From owner-freebsd-standards@FreeBSD.ORG Fri Sep 28 06:28:20 2007 Return-Path: Delivered-To: freebsd-standards@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5AFE216A420; Fri, 28 Sep 2007 06:28:20 +0000 (UTC) (envelope-from jinmei@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 33AC413C457; Fri, 28 Sep 2007 06:28:20 +0000 (UTC) (envelope-from jinmei@FreeBSD.org) Received: from freefall.freebsd.org (jinmei@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l8S6SKIk075667; Fri, 28 Sep 2007 06:28:20 GMT (envelope-from jinmei@freefall.freebsd.org) Received: (from jinmei@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l8S6SJh2075663; Fri, 28 Sep 2007 06:28:19 GMT (envelope-from jinmei) Date: Fri, 28 Sep 2007 06:28:19 GMT Message-Id: <200709280628.l8S6SJh2075663@freefall.freebsd.org> To: marka@isc.org, jinmei@FreeBSD.org, freebsd-standards@FreeBSD.org From: jinmei@FreeBSD.org Cc: Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 06:28:20 -0000 Synopsis: getaddrinfo() fails to set ai_canonname State-Changed-From-To: open->feedback State-Changed-By: jinmei State-Changed-When: Fri Sep 28 06:27:06 UTC 2007 State-Changed-Why: a candidate fix has been committed to head and 6-stable. http://www.freebsd.org/cgi/query-pr.cgi?pr=114910 From owner-freebsd-standards@FreeBSD.ORG Fri Sep 28 07:20:06 2007 Return-Path: Delivered-To: freebsd-standards@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 55BCB16A419 for ; Fri, 28 Sep 2007 07:20:06 +0000 (UTC) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from shuttle.wide.toshiba.co.jp (shuttle.wide.toshiba.co.jp [202.249.10.124]) by mx1.freebsd.org (Postfix) with ESMTP id 2265913C46E for ; Fri, 28 Sep 2007 07:20:06 +0000 (UTC) (envelope-from jinmei@isl.rdc.toshiba.co.jp) Received: from ncg-dhcp63.isl.rdc.toshiba.co.jp (unknown [219.120.50.130]) by shuttle.wide.toshiba.co.jp (Postfix) with ESMTP id 7444073018; Fri, 28 Sep 2007 15:43:25 +0900 (JST) Date: Fri, 28 Sep 2007 15:43:20 +0900 Message-ID: From: JINMEI Tatuya / =?ISO-2022-JP?B?GyRCP0BMQEMjOkgbKEI=?= To: marka@isc.org In-Reply-To: <200709280628.l8S6SJh2075663@freefall.freebsd.org> References: <200709280628.l8S6SJh2075663@freefall.freebsd.org> User-Agent: Wanderlust/2.14.0 (Africa) Emacs/22.0 Mule/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: freebsd-standards@FreeBSD.org Subject: Re: standards/114910: getaddrinfo() fails to set ai_canonname X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 07:20:06 -0000 At Fri, 28 Sep 2007 06:28:19 GMT, jinmei@FreeBSD.org wrote: > a candidate fix has been committed to head and 6-stable. > > http://www.freebsd.org/cgi/query-pr.cgi?pr=114910 I'm pretty sure this fix solves the reported problem, and plan to close this report soon. Please let me know if you have any concern. Thanks, JINMEI, Tatuya Communication Platform Lab. Corporate R&D Center, Toshiba Corp. jinmei@isl.rdc.toshiba.co.jp From owner-freebsd-standards@FreeBSD.ORG Fri Sep 28 15:24:50 2007 Return-Path: Delivered-To: freebsd-standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C6A7D16A4D4 for ; Fri, 28 Sep 2007 15:24:50 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.208.78.105]) by mx1.freebsd.org (Postfix) with ESMTP id D1D9813C494 for ; Fri, 28 Sep 2007 15:24:48 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost.apl.washington.edu [127.0.0.1]) by troutmask.apl.washington.edu (8.14.1/8.14.1) with ESMTP id l8SFMRcp039284 for ; Fri, 28 Sep 2007 08:22:27 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.14.1/8.14.1/Submit) id l8SFMRu4039283 for freebsd-standards@freebsd.org; Fri, 28 Sep 2007 08:22:27 -0700 (PDT) (envelope-from sgk) Date: Fri, 28 Sep 2007 08:22:27 -0700 From: Steve Kargl To: freebsd-standards@freebsd.org Message-ID: <20070928152227.GA39233@troutmask.apl.washington.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i Subject: long double broken on i386? X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Sep 2007 15:24:51 -0000 So, in my never ending crusade to implement missing C99 math functions, I decided to tackle sinl, cosl, and tanl. I have implementations that use argument reduction from k_rem_pio2.c and Chebyshev interpolation for the trig functions over the range [0,pi/4]. On amd64, these routines give <= 1/2 ULP for the various values I've tested in the reduced range. Now, if I test these on i386, I see between 400 and 1200 ULP. I spent a week or so trying to understand the descrepancy and "fix" the problem using a double-double precision arithemetic. I finally found the problem! /usr/include/float.h on i386 is lying about its numerical representation of long double. In particular, at least these 3 values appear to be wrong #define LDBL_MANT_DIG 64 #define LDBL_EPSILON 1.0842021724855044340E-19L #define LDBL_DIG 18 #include int main (void) { int i; long double a; a = 1.L; for (i = 1; i < 64; i++) { a /= 2; if (1.L - a == 1.L) break; } printf("%d %Le\n", i, a); return 0; } amd64:sgk[206] ./z 64 1.084202e-19 i386:kargl[205] ./z 54 5.551115e-17 The above results for i386 are consistent with DBL_MANT_DIG and DBL_EPSILON. Is this intentional, and should float.h be fixed? -- Steve