From owner-freebsd-standards@FreeBSD.ORG Sun Feb 27 02:16:57 2011 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 DFAFC1065672; Sun, 27 Feb 2011 02:16:57 +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 B741C8FC14; Sun, 27 Feb 2011 02:16:57 +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 p1R2Gv8q085326; Sun, 27 Feb 2011 02:16:57 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1R2GvlD085322; Sat, 26 Feb 2011 21:16:57 -0500 (EST) (envelope-from eadler) Date: Sat, 26 Feb 2011 21:16:57 -0500 (EST) Message-Id: <201102270216.p1R2GvlD085322@freefall.freebsd.org> To: henning.petersen@t-online.de, eadler@FreeBSD.org, freebsd-standards@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: standards/153756: fp leak in hesiod.c . 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: Sun, 27 Feb 2011 02:16:58 -0000 Synopsis: fp leak in hesiod.c . State-Changed-From-To: open->patched State-Changed-By: eadler State-Changed-When: Sat Feb 26 21:16:38 EST 2011 State-Changed-Why: In head and 8.x but not in 7.x http://www.freebsd.org/cgi/query-pr.cgi?pr=153756 From owner-freebsd-standards@FreeBSD.ORG Sun Feb 27 09:22:24 2011 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 CDC42106566B; Sun, 27 Feb 2011 09:22:24 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id A4A3B8FC14; Sun, 27 Feb 2011 09:22:24 +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 p1R9MOsl088342; Sun, 27 Feb 2011 09:22:24 GMT (envelope-from kib@freefall.freebsd.org) Received: (from kib@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1R9MOjV088338; Sun, 27 Feb 2011 09:22:24 GMT (envelope-from kib) Date: Sun, 27 Feb 2011 09:22:24 GMT Message-Id: <201102270922.p1R9MOjV088338@freefall.freebsd.org> To: henning.petersen@t-online.de, kib@FreeBSD.org, freebsd-standards@FreeBSD.org From: kib@FreeBSD.org Cc: Subject: Re: standards/153756: fp leak in hesiod.c . 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: Sun, 27 Feb 2011 09:22:24 -0000 Synopsis: fp leak in hesiod.c . State-Changed-From-To: patched->closed State-Changed-By: kib State-Changed-When: Sun Feb 27 09:21:38 UTC 2011 State-Changed-Why: Indeed, fixed in HEAD and 8. http://www.freebsd.org/cgi/query-pr.cgi?pr=153756 From owner-freebsd-standards@FreeBSD.ORG Sun Feb 27 22:08:56 2011 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C72301065670; Sun, 27 Feb 2011 22:08:56 +0000 (UTC) (envelope-from yuri@rawbw.com) Received: from shell0.rawbw.com (shell0.rawbw.com [198.144.192.45]) by mx1.freebsd.org (Postfix) with ESMTP id A1A878FC0C; Sun, 27 Feb 2011 22:08:56 +0000 (UTC) Received: from eagle.yuri.org (stunnel@localhost [127.0.0.1]) (authenticated bits=0) by shell0.rawbw.com (8.14.4/8.14.4) with ESMTP id p1RLNRoG073241; Sun, 27 Feb 2011 13:23:27 -0800 (PST) (envelope-from yuri@rawbw.com) Message-ID: <4D6AC17A.7020505@rawbw.com> Date: Sun, 27 Feb 2011 13:26:18 -0800 From: Yuri User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.16) Gecko/20101211 Thunderbird/3.0.11 MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <4D6ABA14.80208@rawbw.com> In-Reply-To: <4D6ABA14.80208@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , standards@freebsd.org Subject: Re: Is pthread_cond_signal(3) man page correct? 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: Sun, 27 Feb 2011 22:08:56 -0000 Forwarding to standards@ and davidxu@ per Garrett Cooper suggestion. Also I want to add that I came to this question while observing behavior consistent with multiple wakeup on FreeBSD-8.1. The heavily multi-threaded code that assumes that only one thread can be woken up by one pthread_cond_signal call crashes, and the only reasonable explanation so far is that more than one threads are actually being woken up. Yuri On 02/27/2011 12:54, Yuri wrote: > On FreeBSD-8.1 this page says: > The pthread_cond_signal() function unblocks one thread waiting for the > condition variable cond. > > On Linux it says: > The /pthread_cond_signal/() function shall unblock at least one of the > threads that are blocked on the specified condition variable /cond/ > (if any threads are blocked on /cond/). > > Also HP page > (http://docs.hp.com/en/B2355-90130/pthread_cond_signal.3T.html) says: > "If there are no threads blocked on /cond/, this function has no > effect." And later it says: "It is possible that more than one thread > can be unblocked due to a spurious wakeup." > > This is quite confusing: in case nobody is waiting does it block or > not? In case other threads are waiting it's really "any arbitrary > number of threads are woken up"? Or on FreeBSD it's strictly 1? > Shouldn't this be defined in one and only way by POSIX and all > POSIX-compliant systems should work exactly the same. > > I think man page should be expanded to give more comprehensive > explanation. > > Yuri > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org" > From owner-freebsd-standards@FreeBSD.ORG Mon Feb 28 02:00:58 2011 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 41856106566B; Mon, 28 Feb 2011 02:00:58 +0000 (UTC) (envelope-from davidxu@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2FEBC8FC15; Mon, 28 Feb 2011 02:00:58 +0000 (UTC) Received: from xyf.my.dom (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id p1S20u5i087494; Mon, 28 Feb 2011 02:00:57 GMT (envelope-from davidxu@freebsd.org) Message-ID: <4D6B01DB.9090909@freebsd.org> Date: Mon, 28 Feb 2011 10:00:59 +0800 From: David Xu User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.9.2.13) Gecko/20110127 Thunderbird/3.1.7 MIME-Version: 1.0 To: Yuri References: <4D6ABA14.80208@rawbw.com> <4D6AC17A.7020505@rawbw.com> In-Reply-To: <4D6AC17A.7020505@rawbw.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Garrett Cooper , freebsd-hackers@freebsd.org, standards@freebsd.org Subject: Re: Is pthread_cond_signal(3) man page correct? 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, 28 Feb 2011 02:00:58 -0000 On 2011/02/28 05:26, Yuri wrote: > Forwarding to standards@ and davidxu@ per Garrett Cooper suggestion. > > Also I want to add that I came to this question while observing behavior > consistent with multiple wakeup on FreeBSD-8.1. The heavily > multi-threaded code that assumes that only one thread can be woken up by > one pthread_cond_signal call crashes, and the only reasonable > explanation so far is that more than one threads are actually being > woken up. > > Yuri > > > On 02/27/2011 12:54, Yuri wrote: >> On FreeBSD-8.1 this page says: >> The pthread_cond_signal() function unblocks one thread waiting for the >> condition variable cond. >> >> On Linux it says: >> The /pthread_cond_signal/() function shall unblock at least one of the >> threads that are blocked on the specified condition variable /cond/ >> (if any threads are blocked on /cond/). >> >> Also HP page >> (http://docs.hp.com/en/B2355-90130/pthread_cond_signal.3T.html) says: >> "If there are no threads blocked on /cond/, this function has no >> effect." And later it says: "It is possible that more than one thread >> can be unblocked due to a spurious wakeup." >> >> This is quite confusing: in case nobody is waiting does it block or >> not? In case other threads are waiting it's really "any arbitrary >> number of threads are woken up"? Or on FreeBSD it's strictly 1? >> Shouldn't this be defined in one and only way by POSIX and all >> POSIX-compliant systems should work exactly the same. >> >> I think man page should be expanded to give more comprehensive >> explanation. >> >> Yuri >> _______________________________________________ >> freebsd-hackers@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >> To unsubscribe, send any mail to >> "freebsd-hackers-unsubscribe@freebsd.org" >> It is really not important if pthread_cond_signal wake up one thread or multiple threads in corner case, because POSIX said: --- When using condition variables there is always a Boolean predicate involving shared variables associated with each condition wait that is true if the thread should proceed. Spurious wakeups from the pthread_cond_timedwait() or pthread_cond_wait() functions may occur. Since the return from pthread_cond_timedwait() or pthread_cond_wait() does not imply anything about the value of this predicate, the predicate should be re-evaluated upon such return. --- I think in normal case, pthread_cond_signal will wake up one thread, but other events for example, UNIX signal and fork() may interrupt a thread sleeping in kernel, and cause pthread_cond_wait to return to userland, this is called spurious wakeup, and other events, I can not think of yet, but I believe they exist. Regards, David Xu From owner-freebsd-standards@FreeBSD.ORG Mon Feb 28 02:26:35 2011 Return-Path: Delivered-To: standards@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D95B3106566B; Mon, 28 Feb 2011 02:26:35 +0000 (UTC) (envelope-from eischen@vigrid.com) Received: from mail.netplex.net (mail.netplex.net [204.213.176.10]) by mx1.freebsd.org (Postfix) with ESMTP id 92D4E8FC1A; Mon, 28 Feb 2011 02:26:35 +0000 (UTC) Received: from [10.0.0.19] (ip-414b102e.ct.fixed.ntplx.com [65.75.16.46]) (authenticated bits=0) by mail.netplex.net (8.14.4/8.14.4/NETPLEX) with ESMTP id p1S2CWLf013661 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 27 Feb 2011 21:12:33 -0500 X-Virus-Scanned: by AMaViS and Clam AntiVirus (mail.netplex.net) X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.6 (mail.netplex.net [204.213.176.10]); Sun, 27 Feb 2011 21:12:33 -0500 (EST) References: <4D6ABA14.80208@rawbw.com> <4D6AC17A.7020505@rawbw.com> In-Reply-To: <4D6AC17A.7020505@rawbw.com> Mime-Version: 1.0 (iPhone Mail 8C148) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Message-Id: X-Mailer: iPhone Mail (8C148) From: Daniel Eischen Date: Sun, 27 Feb 2011 21:12:30 -0500 To: Yuri Cc: Garrett Cooper , "freebsd-hackers@freebsd.org" , "standards@freebsd.org" Subject: Re: Is pthread_cond_signal(3) man page correct? 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, 28 Feb 2011 02:26:35 -0000 On Feb 27, 2011, at 4:26 PM, Yuri wrote: > Forwarding to standards@ and davidxu@ per Garrett Cooper suggestion. >=20 > Also I want to add that I came to this question while observing behavior c= onsistent with multiple wakeup on FreeBSD-8.1. The heavily multi-threaded co= de that assumes that only one thread can be woken up by one pthread_cond_sig= nal call crashes, and the only reasonable explanation so far is that more th= an one threads are actually being woken up. It depends on what you mean by wakeup. More than one thread may unblock, bu= t only one thread will have the mutex locked after wakeup. If other threads= awake (as allowed by POSIX), they will have to check the state protected by= the mutex to see if they really should awake and continue or if they shoul= d block again on the CV. A wakeup from pthread_cond_wait() should not assum= e that he was the only thread awoken. -- DE= From owner-freebsd-standards@FreeBSD.ORG Mon Feb 28 11:07:08 2011 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 17A7E1065678 for ; Mon, 28 Feb 2011 11:07:08 +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 053B38FC1B for ; Mon, 28 Feb 2011 11:07:08 +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 p1SB77qW012096 for ; Mon, 28 Feb 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p1SB77ZG012094 for freebsd-standards@FreeBSD.org; Mon, 28 Feb 2011 11:07:07 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 28 Feb 2011 11:07:07 GMT Message-Id: <201102281107.p1SB77ZG012094@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, 28 Feb 2011 11:07:08 -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/154873 standards ZFS violates POSIX on open/O_CREAT -> ftruncate o stand/154842 standards invalid request authenticator in the second and subseq o stand/152415 standards [libm] implementation of expl() 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 o docs/143472 standards gethostname(3) references undefined value: HOST_NAME_M 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/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 41 problems total. From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 15:14:36 2011 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 8C089106572B; Tue, 1 Mar 2011 15:14:36 +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 629C58FC1F; Tue, 1 Mar 2011 15:14:36 +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 p21FEaWX061678; Tue, 1 Mar 2011 15:14:36 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p21FEZCm061674; Tue, 1 Mar 2011 10:14:35 -0500 (EST) (envelope-from eadler) Date: Tue, 1 Mar 2011 10:14:35 -0500 (EST) Message-Id: <201103011514.p21FEZCm061674@freefall.freebsd.org> To: thomas@cuivre.fr.eu.org, eadler@FreeBSD.org, freebsd-standards@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits 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: Tue, 01 Mar 2011 15:14:36 -0000 Synopsis: [headers] [patch] Wrong values for _POSIX_ minimal limits State-Changed-From-To: open->patched State-Changed-By: eadler State-Changed-When: Tue Mar 1 10:14:35 EST 2011 State-Changed-Why: committed in head (r211980) and 8 (r213655) http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 15:15:20 2011 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 200D41065693; Tue, 1 Mar 2011 15:15:20 +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 EC49B8FC16; Tue, 1 Mar 2011 15:15:19 +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 p21FFJVO062839; Tue, 1 Mar 2011 15:15:19 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p21FFJ2q062835; Tue, 1 Mar 2011 10:15:19 -0500 (EST) (envelope-from eadler) Date: Tue, 1 Mar 2011 10:15:19 -0500 (EST) Message-Id: <201103011515.p21FFJ2q062835@freefall.freebsd.org> To: giffunip@tutopia.com, eadler@FreeBSD.org, freebsd-standards@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: standards/123688: POSIX standard changes in unistd.h and grp.h 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: Tue, 01 Mar 2011 15:15:20 -0000 Synopsis: POSIX standard changes in unistd.h and grp.h State-Changed-From-To: open->closed State-Changed-By: eadler State-Changed-When: Tue Mar 1 10:15:19 EST 2011 State-Changed-Why: already been MFCed to 7 and 8 http://www.freebsd.org/cgi/query-pr.cgi?pr=123688 From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 15:19:34 2011 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 D8C34106566B; Tue, 1 Mar 2011 15:19:34 +0000 (UTC) (envelope-from thomas@FreeBSD.ORG) Received: from melamine.cuivre.fr.eu.org (unknown [IPv6:2001:470:1f15:1531:224:e8ff:fe3d:60a5]) by mx1.freebsd.org (Postfix) with ESMTP id 984818FC19; Tue, 1 Mar 2011 15:19:34 +0000 (UTC) Received: by melamine.cuivre.fr.eu.org (Postfix, from userid 1000) id C69E75A92; Tue, 1 Mar 2011 16:19:33 +0100 (CET) Date: Tue, 1 Mar 2011 16:19:33 +0100 From: Thomas Quinot To: eadler@FreeBSD.org, bruce@cran.org.uk, bug-followup@freebsd.org Message-ID: <20110301151933.GA28438@melamine.cuivre.fr.eu.org> References: <201103011514.p21FEZCm061674@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201103011514.p21FEZCm061674@freefall.freebsd.org> X-message-flag: WARNING! Using Outlook can damage your computer. User-Agent: Mutt/1.5.20 (2009-06-14) Cc: freebsd-standards@FreeBSD.org Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits 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: Tue, 01 Mar 2011 15:19:34 -0000 * eadler@FreeBSD.org, 2011-03-01 : > State-Changed-From-To: open->patched > State-Changed-By: eadler > State-Changed-When: Tue Mar 1 10:14:35 EST 2011 > State-Changed-Why: > committed in head (r211980) and 8 (r213655) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 Right, I think this PR can indeed be closed now. Thanks! Thomas. From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 15:20:11 2011 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 A70971065673 for ; Tue, 1 Mar 2011 15:20: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 9567D8FC12 for ; Tue, 1 Mar 2011 15:20:11 +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 p21FKBSJ065186 for ; Tue, 1 Mar 2011 15:20:11 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p21FKB0P065185; Tue, 1 Mar 2011 15:20:11 GMT (envelope-from gnats) Date: Tue, 1 Mar 2011 15:20:11 GMT Message-Id: <201103011520.p21FKB0P065185@freefall.freebsd.org> To: freebsd-standards@FreeBSD.org From: Thomas Quinot Cc: Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits X-BeenThere: freebsd-standards@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Thomas Quinot List-Id: Standards compliance List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2011 15:20:11 -0000 The following reply was made to PR standards/104743; it has been noted by GNATS. From: Thomas Quinot To: eadler@FreeBSD.org, bruce@cran.org.uk, bug-followup@freebsd.org Cc: freebsd-standards@FreeBSD.org Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits Date: Tue, 1 Mar 2011 16:19:33 +0100 * eadler@FreeBSD.org, 2011-03-01 : > State-Changed-From-To: open->patched > State-Changed-By: eadler > State-Changed-When: Tue Mar 1 10:14:35 EST 2011 > State-Changed-Why: > committed in head (r211980) and 8 (r213655) > > http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 Right, I think this PR can indeed be closed now. Thanks! Thomas. From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 15:22:18 2011 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 65B2A1065674; Tue, 1 Mar 2011 15:22:18 +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 3C70B8FC22; Tue, 1 Mar 2011 15:22:18 +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 p21FMIkL073691; Tue, 1 Mar 2011 15:22:18 GMT (envelope-from eadler@freefall.freebsd.org) Received: (from eadler@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p21FMIpl073687; Tue, 1 Mar 2011 10:22:18 -0500 (EST) (envelope-from eadler) Date: Tue, 1 Mar 2011 10:22:18 -0500 (EST) Message-Id: <201103011522.p21FMIpl073687@freefall.freebsd.org> To: eadler@FreeBSD.org, freebsd-standards@FreeBSD.org, jilles@FreeBSD.org From: eadler@FreeBSD.org Cc: Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits 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: Tue, 01 Mar 2011 15:22:18 -0000 Synopsis: [headers] [patch] Wrong values for _POSIX_ minimal limits Responsible-Changed-From-To: freebsd-standards->jilles Responsible-Changed-By: eadler Responsible-Changed-When: Tue Mar 1 10:22:17 EST 2011 Responsible-Changed-Why: same as above http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 From owner-freebsd-standards@FreeBSD.ORG Tue Mar 1 16:01:38 2011 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 9EC3A106566C; Tue, 1 Mar 2011 16:01:38 +0000 (UTC) (envelope-from lists@eitanadler.com) Received: from mail-iw0-f182.google.com (mail-iw0-f182.google.com [209.85.214.182]) by mx1.freebsd.org (Postfix) with ESMTP id 56D848FC0A; Tue, 1 Mar 2011 16:01:38 +0000 (UTC) Received: by iwn33 with SMTP id 33so4809748iwn.13 for ; Tue, 01 Mar 2011 08:01:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=eitanadler.com; s=0xdeadbeef; h=domainkey-signature:mime-version:sender:in-reply-to:references:from :date:x-google-sender-auth:message-id:subject:to:cc:content-type; bh=e/P2uK4mw/5vme5PzMvTlU0CDUu2EzQ4abT//graI64=; b=PQpyo+iV/UscgPQyvINw73rrVJnUprexRonuawmOKR5QWnkHEqYblxBy7Z5ApuvaIw sn5nAc0IA1dDx26vnbQpVHHGxjkgdMgdOu1eFzE+ER/8lLkhhWO6+Ty18KNMGugccReD IdOaEesijYJu5SQeocGiX/1wTRB3Gcnyg7hv0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=eitanadler.com; s=0xdeadbeef; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type; b=VFZTIHxHWfBB2lvCClKCcSuCjrexehDJzCrSvT3Mvp1buRx9sR5n6joyEvzJAoWR2M 1PWkvsDXAYj954R6cWPJV57jySxhCnG+sb0AzkGFKes7zx+MTNbY9o60JmOLIafXAO0h 9gPG/q/tLio7t803U/mrCVmypuXpGPnqJJb7o= Received: by 10.42.178.66 with SMTP id bl2mr6705609icb.522.1298993515215; Tue, 01 Mar 2011 07:31:55 -0800 (PST) MIME-Version: 1.0 Sender: lists@eitanadler.com Received: by 10.231.32.68 with HTTP; Tue, 1 Mar 2011 07:31:35 -0800 (PST) In-Reply-To: <20110301151933.GA28438@melamine.cuivre.fr.eu.org> References: <201103011514.p21FEZCm061674@freefall.freebsd.org> <20110301151933.GA28438@melamine.cuivre.fr.eu.org> From: Eitan Adler Date: Tue, 1 Mar 2011 10:31:35 -0500 X-Google-Sender-Auth: RleRhY8GnW68g3BBQjt7ipxAmyY Message-ID: To: Thomas Quinot Content-Type: text/plain; charset=UTF-8 Cc: freebsd-standards@freebsd.org, bug-followup@freebsd.org Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits 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: Tue, 01 Mar 2011 16:01:38 -0000 >> http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 > > Right, I think this PR can indeed be closed now. Thanks! What about 7.x? -- Eitan Adler From owner-freebsd-standards@FreeBSD.ORG Wed Mar 2 02:37:57 2011 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 E5F75106566C; Wed, 2 Mar 2011 02:37:57 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail01.syd.optusnet.com.au (mail01.syd.optusnet.com.au [211.29.132.182]) by mx1.freebsd.org (Postfix) with ESMTP id 812538FC17; Wed, 2 Mar 2011 02:37:57 +0000 (UTC) Received: from c122-107-114-89.carlnfd1.nsw.optusnet.com.au (c122-107-114-89.carlnfd1.nsw.optusnet.com.au [122.107.114.89]) by mail01.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id p222bmlt014599 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 2 Mar 2011 13:37:49 +1100 Date: Wed, 2 Mar 2011 13:37:48 +1100 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Thomas Quinot In-Reply-To: <20110301151933.GA28438@melamine.cuivre.fr.eu.org> Message-ID: <20110302131350.E1260@besplex.bde.org> References: <201103011514.p21FEZCm061674@freefall.freebsd.org> <20110301151933.GA28438@melamine.cuivre.fr.eu.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-standards@FreeBSD.org, eadler@FreeBSD.org, bug-followup@FreeBSD.org Subject: Re: standards/104743: [headers] [patch] Wrong values for _POSIX_ minimal limits 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, 02 Mar 2011 02:37:58 -0000 On Tue, 1 Mar 2011, Thomas Quinot wrote: > * eadler@FreeBSD.org, 2011-03-01 : > >> State-Changed-From-To: open->patched >> State-Changed-By: eadler >> State-Changed-When: Tue Mar 1 10:14:35 EST 2011 >> State-Changed-Why: >> committed in head (r211980) and 8 (r213655) >> >> http://www.freebsd.org/cgi/query-pr.cgi?pr=104743 > > Right, I think this PR can indeed be closed now. Thanks! I don't see any commit that correctly fixed this. include/limits.h now has: % #if __POSIX_VISIBLE __POSIX_VISIBLE means "any version of POSIX". Many of the definitions under this ifdef (mainly the ones changed in the patch in the PR) have values that depend on the version of POSIX. Thus they cannot be solely under this ifdef. But they are, and recent commits didn't change this at all. If recent commits changed the values, then they just moved the brokenness from one version of POSIX to another. Probably from current POSIX to old POSIX, so it is less impportant. % #define _POSIX_ARG_MAX 4096 % #define _POSIX_CHILD_MAX 25 This was 6 in POSIX.1-1988 through at least POSIX.1-2001-draft7. The PR initially wants to change it unconditionally back to 6. This at least fixes the old versions. According to the PR followup, later versions of POSIX change it to 25, so it needs to be ifdefed. % #define _POSIX_LINK_MAX 8 % #define _POSIX_MAX_CANON 255 % #define _POSIX_MAX_INPUT 255 % #define _POSIX_NAME_MAX 14 % #define _POSIX_NGROUPS_MAX 8 This was 0 in POSIX.1-1988 through at least POSIX.1-1996. It was changed to be 8 at least as early as POSIX.1-2001-draft7. The PR initially wants to change it unconditionally back to 0. It needs to be ifdefed. % #define _POSIX_OPEN_MAX 20 This was 16 in POSIX.1-1988 through at least POSIX.1-1996. It was changed to be 20 at least as early as POSIX.1-2001-draft7. The PR initially wants to change it unconditionally back to 16. It needs to be ifdefed. % #define _POSIX_PATH_MAX 256 This was 255 in POSIX.1-1988 through at least POSIX.1-1996. It was changed to be 256 at least as early as POSIX.1-2001-draft7. The PR initially wants to change it unconditionally back to 255. It needs to be ifdefed. % #define _POSIX_PIPE_BUF 512 % #define _POSIX_SSIZE_MAX 32767 % #define _POSIX_STREAM_MAX 8 % #define _POSIX_TZNAME_MAX 6 This was 3 in POSIX.1-1988 through at least POSIX.1-1996. It was changed to be 6 at least as early as POSIX.1-2001-draft7. The PR initially wants to change it unconditionally back to 3. It needs to be ifdefed. % ... % #if __POSIX_VISIBLE >= 199309 % #define _POSIX_AIO_LISTIO_MAX 2 Maybe the support for old versions of POSIX is unimportant, but if you don't ifdef the above then you turn the careful ifdefs like this in other parts of the file into nonsense. Bruce From owner-freebsd-standards@FreeBSD.ORG Fri Mar 4 02:09:57 2011 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 C52861065676; Fri, 4 Mar 2011 02:09:57 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9CA1B8FC16; Fri, 4 Mar 2011 02:09:57 +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 p2429vO4019024; Fri, 4 Mar 2011 02:09:57 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p2429vJG019020; Fri, 4 Mar 2011 02:09:57 GMT (envelope-from linimon) Date: Fri, 4 Mar 2011 02:09:57 GMT Message-Id: <201103040209.p2429vJG019020@freefall.freebsd.org> To: dfilter@FreeBSD.ORG, linimon@FreeBSD.org, gnats-admin@FreeBSD.org, freebsd-standards@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: standards/155244: Re: standards/104743: commit references a PR 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, 04 Mar 2011 02:09:57 -0000 Old Synopsis: Re: standard/104743: commit references a PR New Synopsis: Re: standards/104743: commit references a PR State-Changed-From-To: open->closed State-Changed-By: linimon State-Changed-When: Fri Mar 4 02:09:12 UTC 2011 State-Changed-Why: Misfiled followup to standards/104743; content migrated. Responsible-Changed-From-To: gnats-admin->freebsd-standards Responsible-Changed-By: linimon Responsible-Changed-When: Fri Mar 4 02:09:12 UTC 2011 Responsible-Changed-Why: http://www.freebsd.org/cgi/query-pr.cgi?pr=155244 From owner-freebsd-standards@FreeBSD.ORG Sat Mar 5 17:30:09 2011 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 7CE3C106566C; Sat, 5 Mar 2011 17:30:09 +0000 (UTC) (envelope-from pjd@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 4D0628FC13; Sat, 5 Mar 2011 17:30:09 +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 p25HU98a050659; Sat, 5 Mar 2011 17:30:09 GMT (envelope-from pjd@freefall.freebsd.org) Received: (from pjd@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p25HU9V6050655; Sat, 5 Mar 2011 17:30:09 GMT (envelope-from pjd) Date: Sat, 5 Mar 2011 17:30:09 GMT Message-Id: <201103051730.p25HU9V6050655@freefall.freebsd.org> To: pjd@FreeBSD.org, freebsd-standards@FreeBSD.org, pjd@FreeBSD.org From: pjd@FreeBSD.org Cc: Subject: Re: standards/154873: ZFS violates POSIX on open/O_CREAT -> ftruncate 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, 05 Mar 2011 17:30:09 -0000 Synopsis: ZFS violates POSIX on open/O_CREAT -> ftruncate Responsible-Changed-From-To: freebsd-standards->pjd Responsible-Changed-By: pjd Responsible-Changed-When: sob 5 mar 2011 17:29:48 UTC Responsible-Changed-Why: I'll take this one. http://www.freebsd.org/cgi/query-pr.cgi?pr=154873