From owner-freebsd-standards@FreeBSD.ORG Mon Jan 9 11:07:14 2012 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 BD6D2106567D for ; Mon, 9 Jan 2012 11:07:14 +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 90AE68FC19 for ; Mon, 9 Jan 2012 11:07:14 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q09B7E8L042319 for ; Mon, 9 Jan 2012 11:07:14 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q09B7Ddv042317 for freebsd-standards@FreeBSD.org; Mon, 9 Jan 2012 11:07:13 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 9 Jan 2012 11:07:13 GMT Message-Id: <201201091107.q09B7Ddv042317@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, 09 Jan 2012 11:07:14 -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/162434 standards getaddrinfo: addrinfo.ai_family is an address family, o stand/157050 standards OSS implementation lacks AFMT_FLOAT o stand/154842 standards invalid request authenticator in the second and subseq o stand/150093 standards C++ std::locale support is broken o docs/143472 standards gethostname(3) references undefined value: HOST_NAME_M 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/121921 standards [patch] Add leap second support to at(1), atrun(8) 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 p stand/107561 standards [libc] [patch] [request] Missing SUS function tcgetsid o stand/100017 standards [Patch] Add fuser(1) functionality to fstat(1) o stand/94729 standards [libc] fcntl() throws undocumented ENOTTY a stand/86484 standards [patch] mkfifo(1) uses wrong permissions 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( 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 a stand/41576 standards ln(1): replacing old dir-symlinks o stand/39256 standards snprintf/vsnprintf aren't POSIX-conformant for strings 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 33 problems total. From owner-freebsd-standards@FreeBSD.ORG Wed Jan 11 15:02:42 2012 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 3FC87106566C; Wed, 11 Jan 2012 15:02:42 +0000 (UTC) (envelope-from gnn@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 15AEF8FC0C; Wed, 11 Jan 2012 15:02:42 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0BF2fkF097432; Wed, 11 Jan 2012 15:02:41 GMT (envelope-from gnn@freefall.freebsd.org) Received: (from gnn@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0BF2fCE097428; Wed, 11 Jan 2012 15:02:41 GMT (envelope-from gnn) Date: Wed, 11 Jan 2012 15:02:41 GMT Message-Id: <201201111502.q0BF2fCE097428@freefall.freebsd.org> To: vs@freebsd.org, gnn@FreeBSD.org, freebsd-standards@FreeBSD.org, gnn@FreeBSD.org From: gnn@FreeBSD.org Cc: Subject: Re: standards/94729: [libc] fcntl() throws undocumented ENOTTY 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: Wed, 11 Jan 2012 15:02:42 -0000 Synopsis: [libc] fcntl() throws undocumented ENOTTY State-Changed-From-To: open->patched State-Changed-By: gnn State-Changed-When: Wed Jan 11 15:02:19 UTC 2012 State-Changed-Why: Patch applied to HEAD as revision 229965. Responsible-Changed-From-To: freebsd-standards->gnn Responsible-Changed-By: gnn Responsible-Changed-When: Wed Jan 11 15:02:19 UTC 2012 Responsible-Changed-Why: Patch applied to HEAD as revision 229965. http://www.freebsd.org/cgi/query-pr.cgi?pr=94729 From owner-freebsd-standards@FreeBSD.ORG Thu Jan 12 08:50:11 2012 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 2F8D6106566C for ; Thu, 12 Jan 2012 08:50:11 +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 E2D3E8FC17 for ; Thu, 12 Jan 2012 08:50:10 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0C8oA2q018550 for ; Thu, 12 Jan 2012 08:50:10 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0C8oAG9018549; Thu, 12 Jan 2012 08:50:10 GMT (envelope-from gnats) Resent-Date: Thu, 12 Jan 2012 08:50:10 GMT Resent-Message-Id: <201201120850.q0C8oAG9018549@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, Marcus Reid Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E04AD106566B for ; Thu, 12 Jan 2012 08:45:02 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22]) by mx1.freebsd.org (Postfix) with ESMTP id C654B8FC0C for ; Thu, 12 Jan 2012 08:45:02 +0000 (UTC) Received: from red.freebsd.org (localhost [127.0.0.1]) by red.freebsd.org (8.14.4/8.14.4) with ESMTP id q0C8j2M1017517 for ; Thu, 12 Jan 2012 08:45:02 GMT (envelope-from nobody@red.freebsd.org) Received: (from nobody@localhost) by red.freebsd.org (8.14.4/8.14.4/Submit) id q0C8j27e017516; Thu, 12 Jan 2012 08:45:02 GMT (envelope-from nobody) Message-Id: <201201120845.q0C8j27e017516@red.freebsd.org> Date: Thu, 12 Jan 2012 08:45:02 GMT From: Marcus Reid To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: standards/164049: getconf returns bad value for ULLONG_MAX 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: Thu, 12 Jan 2012 08:50:11 -0000 >Number: 164049 >Category: standards >Synopsis: getconf returns bad value for ULLONG_MAX >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: Thu Jan 12 08:50:10 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Marcus Reid >Release: 9-STABLE >Organization: >Environment: FreeBSD seabug.megapath.biz 9.0-STABLE FreeBSD 9.0-STABLE #0: Mon Jan 9 10:53:27 PST 2012 root@seabug.megapath.biz:/usr/obj/usr/src/sys/FARK amd64 >Description: getconf outputs -1 for ULLONG_MAX (and ULONG_MAX on amd64), which seems strange. Another implementation that I checked outputs 18446744073709551615 like it should. >How-To-Repeat: getconf ULLONG_MAX >Fix: Patch attached. It creates a couple of compiler warnings but fixes the problem, maybe there is a better way to do it. Patch attached with submission follows: --- usr.bin/getconf/getconf.c.orig 2011-09-27 01:42:06.444544408 -0700 +++ usr.bin/getconf/getconf.c 2012-01-12 00:15:50.000000000 -0800 @@ -98,7 +98,10 @@ if (argv[optind + 1] == NULL) { /* confstr or sysconf */ if ((valid = find_limit(name, &limitval)) != 0) { if (valid > 0) - printf("%" PRIdMAX "\n", limitval); + if((long long)limitval == -1) + printf("%llu\n", limitval); + else + printf("%lld\n", limitval); else printf("undefined\n"); --- usr.bin/getconf/getconf.h.orig 2011-09-27 01:42:06.444544408 -0700 +++ usr.bin/getconf/getconf.h 2012-01-12 00:15:51.000000000 -0800 @@ -31,7 +31,6 @@ #ifdef STABLE typedef long long intmax_t; -#define PRIdMAX "lld" #else #include #endif >Release-Note: >Audit-Trail: >Unformatted: From owner-freebsd-standards@FreeBSD.ORG Fri Jan 13 04:01:02 2012 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 1181F106566B; Fri, 13 Jan 2012 04:01:02 +0000 (UTC) (envelope-from eadler@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id DC2158FC14; Fri, 13 Jan 2012 04:01:01 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q0D411Hx037484; Fri, 13 Jan 2012 04:01:01 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q0D411Li037472; Fri, 13 Jan 2012 04:01:01 GMT (envelope-from eadler) Date: Fri, 13 Jan 2012 04:01:01 GMT Message-Id: <201201130401.q0D411Li037472@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-standards@FreeBSD.org, eadler@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: standards/164049: getconf returns bad value for ULLONG_MAX 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, 13 Jan 2012 04:01:02 -0000 Synopsis: getconf returns bad value for ULLONG_MAX Responsible-Changed-From-To: freebsd-standards->eadler Responsible-Changed-By: eadler Responsible-Changed-When: Fri Jan 13 04:01:01 UTC 2012 Responsible-Changed-Why: I'll take a look at the affected code. We don't allow compiler warnings in our code (except for very good reason) but this could likely be fixed correctly :) http://www.freebsd.org/cgi/query-pr.cgi?pr=164049