From owner-freebsd-stable@FreeBSD.ORG Thu Mar 20 08:28:01 2008 Return-Path: Delivered-To: freebsd-stable@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7D87F1065672 for ; Thu, 20 Mar 2008 08:28:01 +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 5BA1E8FC1C; Thu, 20 Mar 2008 08:28:01 +0000 (UTC) (envelope-from davidxu@FreeBSD.org) Received: from apple.my.domain (root@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2K8RvTq010997; Thu, 20 Mar 2008 08:27:58 GMT (envelope-from davidxu@freebsd.org) Message-ID: <47E2205E.60902@freebsd.org> Date: Thu, 20 Mar 2008 16:29:18 +0800 From: David Xu User-Agent: Thunderbird 2.0.0.9 (X11/20071211) MIME-Version: 1.0 To: Heiko Wundram References: <200803200832.16340.modelnine@modelnine.org> In-Reply-To: <200803200832.16340.modelnine@modelnine.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-stable@FreeBSD.org Subject: Re: pthread_mutexattr_settype non-conformance to man-page and POSIX X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Mar 2008 08:28:01 -0000 Heiko Wundram wrote: > I hit a bug in libthr with pthread_mutexattr_settype which (at least as far as > I understand the POSIX reference and also the man-page) makes it > non-conformant to the specifications. > > Quoting: > > """ > RETURN VALUES > If successful, these functions return 0. Otherwise, an error number is > returned to indicate the error. > ... > ERRORS > ... > The pthread_mutexattr_settype() function will fail if: > > [EINVAL] Invalid value for attr, or invalid value for type. > """ > Fixed, thanks! David Xu