From owner-freebsd-standards@FreeBSD.ORG Mon Oct 4 11:07:06 2010 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 05DF21065733 for ; Mon, 4 Oct 2010 11:07:06 +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 E76D08FC1A for ; Mon, 4 Oct 2010 11:07:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o94B758Z065956 for ; Mon, 4 Oct 2010 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o94B75B0065954 for freebsd-standards@FreeBSD.org; Mon, 4 Oct 2010 11:07:05 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 4 Oct 2010 11:07:05 GMT Message-Id: <201010041107.o94B75B0065954@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 freebsd-standards@FreeBSD.org 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, 04 Oct 2010 11:07:06 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o stand/150093 standards C++ std::locale support is broken a stand/149980 standards [libc] [patch] negative value integer to nanosleep(2) o stand/147210 standards xmmintrin.h and cstdlib conflicts with each other with p stand/145517 standards POSIX getline() missing o stand/144231 standards bind/connect/sendto too strict about sockaddr length o stand/143358 standards [libm] nearbyint(3) raises spurious inexact exception o stand/142803 standards j0 Bessel function inaccurate near zeros of the functi s stand/141705 standards [libc] [request] libc lacks cexp (and friends) o stand/130067 standards Wrong numeric limits in system headers? o stand/124860 standards flockfile(3) doesn't work when the memory has been exh o stand/123688 standards POSIX standard changes in unistd.h and grp.h o stand/121921 standards [patch] Add leap second support to at(1), atrun(8) o stand/116826 standards [patch] sh support for POSIX character classes o stand/116477 standards rm(1): rm behaves unexpectedly when using -r and relat o bin/116413 standards incorrect getconf(1) handling of unsigned constants gi o stand/116081 standards make does not work with the directive sinclude o stand/114633 standards /etc/rc.subr: line 511: omits a quotation mark: "force p stand/107561 standards [libc] [patch] [request] Missing SUS function tcgetsid o stand/104743 standards [headers] [patch] Wrong values for _POSIX_ minimal lim o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/96236 standards [patch] [posix] sed(1) incorrectly describes a functio o stand/96016 standards [headers] clock_getres et al should be in o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY o kern/93705 standards [headers] [patch] ENODATA and EGREGIOUS (for glibc com o stand/92362 standards [headers] [patch] Missing SIGPOLL in kernel headers a stand/86484 standards [patch] mkfifo(1) uses wrong permissions o stand/83845 standards [libm] [patch] add log2() and log2f() support for libm o stand/82654 standards C99 long double math functions are missing o stand/81287 standards [patch] fingerd(8) might send a line not ending in CRL a stand/80293 standards sysconf() does not support well-defined unistd values o stand/79056 standards [feature request] [atch] regex(3) regression tests o stand/70813 standards [patch] ls(1) not Posix compliant o stand/66357 standards make POSIX conformance problem ('sh -e' & '+' command- s kern/64875 standards [libc] [patch] [request] add a system call: fdatasync( s stand/62858 standards malloc(0) not C99 compliant o stand/56476 standards [patch] cd9660 unicode support simple hack o stand/54410 standards one-true-awk not POSIX compliant (no extended REs) o stand/46119 standards Priority problems for SCHED_OTHER using pthreads o stand/44365 standards [headers] [patch] [request] introduce ulong and unchar f stand/41576 standards ln(1): replacing old dir-symlinks o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings o kern/27835 standards [libc] execve() doesn't conform to execve(2) spec in s a docs/26003 standards getgroups(2) lists NGROUPS_MAX but not syslimits.h s stand/24590 standards timezone function not compatible witn Single Unix Spec o stand/21519 standards sys/dir.h should be deprecated some more s bin/14925 standards getsubopt isn't poisonous enough 46 problems total. From owner-freebsd-standards@FreeBSD.ORG Fri Oct 8 16:30:07 2010 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 0BC741065670 for ; Fri, 8 Oct 2010 16:30:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id C50888FC18 for ; Fri, 8 Oct 2010 16:30:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o98GU6BP042686 for ; Fri, 8 Oct 2010 16:30:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o98GU6oB042682; Fri, 8 Oct 2010 16:30:06 GMT (envelope-from gnats) Resent-Date: Fri, 8 Oct 2010 16:30:06 GMT Resent-Message-Id: <201010081630.o98GU6oB042682@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-standards@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jeremy Huddleston Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F1B67106564A for ; Fri, 8 Oct 2010 16:28:55 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E305B8FC13 for ; Fri, 8 Oct 2010 16:28:55 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o98GStq3089803 for ; Fri, 8 Oct 2010 16:28:55 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o98GStim089802; Fri, 8 Oct 2010 16:28:55 GMT (envelope-from nobody) Message-Id: <201010081628.o98GStim089802@www.freebsd.org> Date: Fri, 8 Oct 2010 16:28:55 GMT From: Jeremy Huddleston To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: standards/151316: lib/libc/string/strerror.c r1.9 breaks POSIX 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, 08 Oct 2010 16:30:07 -0000 >Number: 151316 >Category: standards >Synopsis: lib/libc/string/strerror.c r1.9 breaks POSIX >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-standards >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Oct 08 16:30:06 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jeremy Huddleston >Release: trunk >Organization: Apple Inc >Environment: NA >Description: r1.9 of strerror.c did the following (from the changeslog) strerror()'s semantics have changed slightly such that an argument of 0 is now considered invalid and errno is set to EINVAL. This introduces a regression in SUS conformance. >How-To-Repeat: >Fix: In strerror.c's strerror_r - if (errnum < 1 || errnum >= sys_nerr) { + if (errnum < 0 || errnum >= sys_nerr) { And here's a man page change: @@ -110,7 +118,7 @@ .Er EINVAL as a warning. Error numbers recognized by this implementation fall in -the range 0 < +the range 0 <= .Fa errnum < .Fa sys_nerr . >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Sat Oct 9 12:40:08 2010 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 4DEE2106566C for ; Sat, 9 Oct 2010 12:40:08 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id E84F58FC13 for ; Sat, 9 Oct 2010 12:40:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o99Ce7J6048190 for ; Sat, 9 Oct 2010 12:40:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o99Ce7AM048178; Sat, 9 Oct 2010 12:40:07 GMT (envelope-from gnats) Date: Sat, 9 Oct 2010 12:40:07 GMT Message-Id: <201010091240.o99Ce7AM048178@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Jilles Tjoelker Cc: Subject: Re: standards/151316: lib/libc/string/strerror.c r1.9 breaks POSIX X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Jilles Tjoelker List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 12:40:08 -0000 The following reply was made to PR standards/151316; it has been noted by GNATS. From: Jilles Tjoelker To: Jeremy Huddleston Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: standards/151316: lib/libc/string/strerror.c r1.9 breaks POSIX Date: Sat, 9 Oct 2010 14:37:31 +0200 On Fri, Oct 08, 2010 at 04:28:55PM +0000, Jeremy Huddleston wrote: > >Number: 151316 > >Category: standards > >Synopsis: lib/libc/string/strerror.c r1.9 breaks POSIX > >Description: > r1.9 of strerror.c did the following (from the changeslog) > strerror()'s semantics have changed slightly such that an argument of > 0 is now considered invalid and errno is set to EINVAL. > This introduces a regression in SUS conformance. Please explain why. As far as I understand, 0 is not a valid error number, and therefore it is appropriate to set errno = EINVAL while still returning a string. Hints to 0 being an invalid error number are the requirement that all E* constants from be positive and the requirement that no POSIX-defined function shall set errno to 0. If I'm wrong, please provide a reference such as to a specific section in the standard. In any case, this is of little practical effect since few programs check the value of errno set by strerror(). If the patch is accepted, sys_errlist[0] will probably be changed to "Unknown error: 0" so the only difference is errno set by strerror(). > >How-To-Repeat: > >Fix: > In strerror.c's strerror_r > - if (errnum < 1 || errnum >= sys_nerr) { > + if (errnum < 0 || errnum >= sys_nerr) { > And here's a man page change: > @@ -110,7 +118,7 @@ > .Er EINVAL > as a warning. > Error numbers recognized by this implementation fall in > -the range 0 < > +the range 0 <= > .Fa errnum > < > .Fa sys_nerr . -- Jilles Tjoelker From owner-freebsd-standards@FreeBSD.ORG Sat Oct 9 13:31:26 2010 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 B368C106566C for ; Sat, 9 Oct 2010 13:31:26 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mail.zoral.com.ua (mx0.zoral.com.ua [91.193.166.200]) by mx1.freebsd.org (Postfix) with ESMTP id 4ACDD8FC1A for ; Sat, 9 Oct 2010 13:31:25 +0000 (UTC) Received: from deviant.kiev.zoral.com.ua (root@deviant.kiev.zoral.com.ua [10.1.1.148]) by mail.zoral.com.ua (8.14.2/8.14.2) with ESMTP id o99D8oJe047610 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 9 Oct 2010 16:08:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: from deviant.kiev.zoral.com.ua (kostik@localhost [127.0.0.1]) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4) with ESMTP id o99D8o3k053281; Sat, 9 Oct 2010 16:08:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) Received: (from kostik@localhost) by deviant.kiev.zoral.com.ua (8.14.4/8.14.4/Submit) id o99D8o3i053280; Sat, 9 Oct 2010 16:08:50 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: deviant.kiev.zoral.com.ua: kostik set sender to kostikbel@gmail.com using -f Date: Sat, 9 Oct 2010 16:08:50 +0300 From: Kostik Belousov To: Jilles Tjoelker Message-ID: <20101009130850.GY2392@deviant.kiev.zoral.com.ua> References: <201010091240.o99Ce7AM048178@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZplOxUIsrEyrgofR" Content-Disposition: inline In-Reply-To: <201010091240.o99Ce7AM048178@freefall.freebsd.org> User-Agent: Mutt/1.4.2.3i X-Virus-Scanned: clamav-milter 0.95.2 at skuns.kiev.zoral.com.ua X-Virus-Status: Clean X-Spam-Status: No, score=-3.4 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, DNS_FROM_OPENWHOIS autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on skuns.kiev.zoral.com.ua Cc: freebsd-standards@freebsd.org Subject: Re: standards/151316: lib/libc/string/strerror.c r1.9 breaks POSIX 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: Sat, 09 Oct 2010 13:31:26 -0000 --ZplOxUIsrEyrgofR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Oct 09, 2010 at 12:40:07PM +0000, Jilles Tjoelker wrote: > The following reply was made to PR standards/151316; it has been noted by= GNATS. >=20 > From: Jilles Tjoelker > To: Jeremy Huddleston > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: standards/151316: lib/libc/string/strerror.c r1.9 breaks POS= IX > Date: Sat, 9 Oct 2010 14:37:31 +0200 >=20 > On Fri, Oct 08, 2010 at 04:28:55PM +0000, Jeremy Huddleston wrote: > > >Number: 151316 > > >Category: standards > > >Synopsis: lib/libc/string/strerror.c r1.9 breaks POSIX > =20 > > >Description: > > r1.9 of strerror.c did the following (from the changeslog) > =20 > > strerror()'s semantics have changed slightly such that an argument of > > 0 is now considered invalid and errno is set to EINVAL. > =20 > > This introduces a regression in SUS conformance. > =20 > Please explain why. As far as I understand, 0 is not a valid error > number, and therefore it is appropriate to set errno =3D EINVAL while > still returning a string. > =20 > Hints to 0 being an invalid error number are the requirement that all E* > constants from be positive and the requirement that no > POSIX-defined function shall set errno to 0. > =20 > If I'm wrong, please provide a reference such as to a specific section > in the standard. > =20 > In any case, this is of little practical effect since few programs check > the value of errno set by strerror(). If the patch is accepted, > sys_errlist[0] will probably be changed to "Unknown error: 0" so the > only difference is errno set by strerror(). > =20 > > >How-To-Repeat: > =20 > > >Fix: > > In strerror.c's strerror_r > > - if (errnum < 1 || errnum >=3D sys_nerr) { > > + if (errnum < 0 || errnum >=3D sys_nerr) { > =20 > > And here's a man page change: > =20 > > @@ -110,7 +118,7 @@ > > .Er EINVAL > > as a warning. > > Error numbers recognized by this implementation fall in > > -the range 0 < > > +the range 0 <=3D > > .Fa errnum > > < > > .Fa sys_nerr . The often-used idiom is printf("Error %d %s\n", errno, strerror(errno)); In case of errno =3D=3D 0 you get Error 0: Unknown error or something else depending on the order of evaluation of the arguments. --ZplOxUIsrEyrgofR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (FreeBSD) iEYEARECAAYFAkywaWEACgkQC3+MBN1Mb4jlUwCfXzBX5T3YNOWkzRlnIDSBLySk 3T4AniFRVS+YGy+HDmy4/b3IGQgseC5j =qBX5 -----END PGP SIGNATURE----- --ZplOxUIsrEyrgofR-- From owner-freebsd-standards@FreeBSD.ORG Sat Oct 9 14:40:03 2010 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 7DB78106566B for ; Sat, 9 Oct 2010 14:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 533FC8FC17 for ; Sat, 9 Oct 2010 14:40:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o99Ee3ht074419 for ; Sat, 9 Oct 2010 14:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o99Ee3dF074418; Sat, 9 Oct 2010 14:40:03 GMT (envelope-from gnats) Date: Sat, 9 Oct 2010 14:40:03 GMT Message-Id: <201010091440.o99Ee3dF074418@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: dfilter@FreeBSD.org (dfilter service) Cc: Subject: Re: standards/104743: commit references a PR X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dfilter service List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 09 Oct 2010 14:40:03 -0000 The following reply was made to PR standards/104743; it has been noted by GNATS. From: dfilter@FreeBSD.org (dfilter service) To: bug-followup@FreeBSD.org Cc: Subject: Re: standards/104743: commit references a PR Date: Sat, 9 Oct 2010 13:01:31 +0000 (UTC) Author: jilles Date: Sat Oct 9 13:01:25 2010 New Revision: 213655 URL: http://svn.freebsd.org/changeset/base/213655 Log: MFC r211980: Correct value for _POSIX_AIO_LISTIO_MAX in . All the "Minimum Values" (POSIX.1-2008 XBD 13 Headers ) are now correct. These should all be exactly as they are in the specification; the possibly higher values we support are announced differently. PR: standards/104743 Modified: stable/8/include/limits.h Directory Properties: stable/8/include/ (props changed) Modified: stable/8/include/limits.h ============================================================================== --- stable/8/include/limits.h Sat Oct 9 12:57:06 2010 (r213654) +++ stable/8/include/limits.h Sat Oct 9 13:01:25 2010 (r213655) @@ -74,7 +74,7 @@ #endif #if __POSIX_VISIBLE >= 199309 -#define _POSIX_AIO_LISTIO_MAX 16 +#define _POSIX_AIO_LISTIO_MAX 2 #define _POSIX_AIO_MAX 1 #define _POSIX_DELAYTIMER_MAX 32 #define _POSIX_MQ_OPEN_MAX 8 _______________________________________________ svn-src-all@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"