From owner-svn-src-head@FreeBSD.ORG Sat Oct 25 19:36:43 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 2D532216; Sat, 25 Oct 2014 19:36:43 +0000 (UTC) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 063CAF0E; Sat, 25 Oct 2014 19:36:43 +0000 (UTC) Received: from ralph.baldwin.cx (pool-173-70-85-31.nwrknj.fios.verizon.net [173.70.85.31]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id 55BEBB926; Sat, 25 Oct 2014 15:36:41 -0400 (EDT) From: John Baldwin To: Andrey Chernov Subject: Re: svn commit: r273601 - head/lib/libc/gen Date: Sat, 25 Oct 2014 15:28:22 -0400 Message-ID: <94327674.WeLfOcjE9r@ralph.baldwin.cx> User-Agent: KMail/4.12.5 (FreeBSD/10.1-BETA2; KDE/4.12.5; amd64; ; ) In-Reply-To: <544B1C34.1020204@freebsd.org> References: <201410241955.s9OJtnbm014234@svn.freebsd.org> <544B0930.8010004@freebsd.org> <544B1C34.1020204@freebsd.org> MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Sat, 25 Oct 2014 15:36:41 -0400 (EDT) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 25 Oct 2014 19:36:43 -0000 On Saturday, October 25, 2014 07:42:44 AM Andrey Chernov wrote: > On 25.10.2014 6:21, Andrey Chernov wrote: > > On 24.10.2014 23:55, John Baldwin wrote: > >> Author: jhb > >> Date: Fri Oct 24 19:55:49 2014 > >> New Revision: 273601 > >> URL: https://svnweb.freebsd.org/changeset/base/273601 > >> > >> Log: > >> Don't reference sem(4) from the POSIX semaphore pages. POSIX > >> semaphores > >> were reimplemented using umtx in FreeBSD 9 and no longer use sem(4). > > > > sem kernel module referenced in sem(4) uses the same uipc_sem.c file as > > kernel's P1003_1B_SEMAPHORES option, so they both use the same code and > > better be cross-linked since sem(4) explains how to turn it on. > > From the first glance I can't determine, is libc implementation better > than kernel one or not. BTW, firefox port still recommends sem_load="YES" The sem_init/open/unlike/destroy/post/*wait() API used to use sem(4) (which is sem.ko and the kernel option) from FreeBSD 5 up through FreeBSD 8. These functions have used umtx_op() instead of sem(4) since FreeBSD 9.0. Note that libc/gen/sem_new.c does not call ksem_*. -- John Baldwin