From owner-freebsd-arch Fri Mar 15 8:45:37 2002 Delivered-To: freebsd-arch@freebsd.org Received: from mail.pcnet.com (pcnet1.pcnet.com [204.213.232.3]) by hub.freebsd.org (Postfix) with ESMTP id A573237B42A for ; Fri, 15 Mar 2002 08:45:13 -0800 (PST) Received: from localhost (eischen@localhost) by mail.pcnet.com (8.12.1/8.12.1) with ESMTP id g2FGj6Xx001643; Fri, 15 Mar 2002 11:45:06 -0500 (EST) Date: Fri, 15 Mar 2002 11:45:06 -0500 (EST) From: Daniel Eischen To: Brian Dean Cc: freebsd-arch@FreeBSD.ORG Subject: Re: uthread patch to correct the return code for pthread_rwlock_tryXXlock() In-Reply-To: <20020315113053.A48681@neutrino.bsdhome.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, 15 Mar 2002, Brian Dean wrote: > Hi, > > The man pages for pthread_rwlock_trywrlock() and > pthread_rwlock_tryrdlock() say that EBUSY is returned when the calling > thread is not able to aquire the lock without blocking. However, the > actual functions return EWOULDBLOCK. I believe the man page is > correct (Solaris and others, at least, return EBUSY). > > Unless there are objections, I plan on committing the attached patch > to correct the code. Yes, it should be EBUSY. -- Dan Eischen To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message