From owner-svn-src-stable@FreeBSD.ORG Fri Jun 12 13:34:47 2009 Return-Path: Delivered-To: svn-src-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 325BE1065672; Fri, 12 Jun 2009 13:34:47 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay02.stack.nl [IPv6:2001:610:1108:5010::104]) by mx1.freebsd.org (Postfix) with ESMTP id DD7F18FC20; Fri, 12 Jun 2009 13:34:46 +0000 (UTC) (envelope-from jilles@stack.nl) Received: by mx1.stack.nl (Postfix, from userid 65534) id 3BC56359950; Fri, 12 Jun 2009 15:34:46 +0200 (CEST) X-Spam-DCC: EATSERVER: scanner01.stack.nl 1166; Body=1 Fuz1=1 Fuz2=1 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on scanner01.stack.nl X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00,NO_RELAYS autolearn=ham version=3.2.5 X-Spam-Relay-Country: _RELAYCOUNTRY_ Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 2AAAF359935; Fri, 12 Jun 2009 15:34:44 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id CA053228CB; Fri, 12 Jun 2009 15:34:18 +0200 (CEST) Date: Fri, 12 Jun 2009 15:34:18 +0200 From: Jilles Tjoelker To: John Baldwin Message-ID: <20090612133418.GA8206@stack.nl> References: <200906112137.n5BLbO2S060767@svn.freebsd.org> <200906120851.32846.jhb@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200906120851.32846.jhb@freebsd.org> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-7@freebsd.org, Dmitry Morozovsky Subject: Re: svn commit: r194040 - stable/7/lib/libc/gen X-BeenThere: svn-src-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for all the -stable branches of the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jun 2009 13:34:47 -0000 On Fri, Jun 12, 2009 at 08:51:32AM -0400, John Baldwin wrote: > On Friday 12 June 2009 6:13:08 am Dmitry Morozovsky wrote: > > On Thu, 11 Jun 2009, John Baldwin wrote: > > > > JB> Author: jhb > > JB> Date: Thu Jun 11 21:37:23 2009 > > JB> New Revision: 194040 > > JB> URL: http://svn.freebsd.org/changeset/base/194040 > > JB> > > JB> Log: > > JB> If the running kernel has support for shm_open() and shm_unlink() as > > JB> system calls (i.e. 8.0+), then invoke the system calls instead of using > > JB> open/fcntl/unlink. This is a direct commit instead of an MFC since libc > > JB> in 8.0 always uses the system calls directly. > > > > So it could help running RELENG_7 jails under 8 host? > In that case it probably doesn't matter either way. The goal is that if you > have an 8.x binary and a 7.x binary that are both using shm_open() with a > path to open a SHM region for IPC, they will both access the same object. > If you have all 8.x binaries or all < 8.x binaries in the group that shares > access to a named SHM region then that case would work regardless. where "< 8.x binaries" refers to those using 7.x's libc.so.7. Normally, a 7.x binary running on 8.x will link to 8.x's libc.so.7 and therefore use the new SHM objects even without this change. The change will likely help people that link statically to libc (boo!) or do weird things with the 7.x libc.so.7 file. -- Jilles Tjoelker