From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 17:44:55 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 72F761065686; Tue, 23 Jun 2009 17:44:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5F9598FC15; Tue, 23 Jun 2009 17:44:55 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n5NHitIj084843; Tue, 23 Jun 2009 17:44:55 GMT (envelope-from jhb@svn.freebsd.org) Received: (from jhb@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n5NHit0f084841; Tue, 23 Jun 2009 17:44:55 GMT (envelope-from jhb@svn.freebsd.org) Message-Id: <200906231744.n5NHit0f084841@svn.freebsd.org> From: John Baldwin Date: Tue, 23 Jun 2009 17:44:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-other@freebsd.org X-SVN-Group: stable-other MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 17:44:56 -0000 Author: jhb Date: Tue Jun 23 17:44:55 2009 New Revision: 194744 URL: http://svn.freebsd.org/changeset/base/194744 Log: MF7: If the running kernel has support for shm_open() and shm_unlink() as system calls (i.e. 8.0+), then invoke the system calls instead of using open/fcntl/unlink. Modified: stable/4/lib/libc/ (props changed) stable/4/lib/libc/gen/posixshm.c Modified: stable/4/lib/libc/gen/posixshm.c ============================================================================== --- stable/4/lib/libc/gen/posixshm.c Tue Jun 23 17:42:06 2009 (r194743) +++ stable/4/lib/libc/gen/posixshm.c Tue Jun 23 17:44:55 2009 (r194744) @@ -37,12 +37,34 @@ #include #include +static int _shm_in_kernel = -1; + +/* Wrappers for POSIX SHM system calls in newer kernels. */ +static __inline int +_shm_open(const char *path, int flags, mode_t mode) +{ + + return (syscall(482, path, flags, mode)); +} + +static __inline int +_shm_unlink(const char *path) +{ + + return (syscall(483, path)); +} + int shm_open(const char *path, int flags, mode_t mode) { int fd; struct stat stab; + if (_shm_in_kernel == -1) + _shm_in_kernel = feature_present("posix_shm"); + if (_shm_in_kernel == 1) + return (_shm_open(path, flags, mode)); + if ((flags & O_ACCMODE) == O_WRONLY) return (EINVAL); @@ -65,5 +87,11 @@ shm_open(const char *path, int flags, mo int shm_unlink(const char *path) { + + if (_shm_in_kernel == -1) + _shm_in_kernel = feature_present("posix_shm"); + if (_shm_in_kernel == 1) + return (_shm_unlink(path)); + return (unlink(path)); } From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 18:43:10 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9C09E106566C; Tue, 23 Jun 2009 18:43:10 +0000 (UTC) (envelope-from prvs=14183352ff=brian@Awfulhak.org) Received: from idcmail-mo1so.shaw.ca (idcmail-mo1so.shaw.ca [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 2F61F8FC17; Tue, 23 Jun 2009 18:43:10 +0000 (UTC) (envelope-from prvs=14183352ff=brian@Awfulhak.org) Received: from pd4ml1so-ssvc.prod.shaw.ca ([10.0.141.141]) by pd4mo1so-svcs.prod.shaw.ca with ESMTP; 23 Jun 2009 12:13:42 -0600 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.0 c=0 a=6I5d2MoRAAAA:8 a=BKOa2snanf9lg3hjwWEA:9 a=K81_ZiLA1QJZfMZziWEA:7 a=tI30pwUWI5MIcgDfITYG_a2ipYwA:4 a=SV7veod9ZcQA:10 a=WJ3hkfHDukgA:10 a=4cVfepi6rSwA:10 Received: from unknown (HELO store.lan.Awfulhak.org) ([174.7.23.140]) by pd4ml1so-dmz.prod.shaw.ca with ESMTP; 23 Jun 2009 12:13:42 -0600 Received: from store.lan.Awfulhak.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id B4FDDC433AC_A411B81B; Tue, 23 Jun 2009 18:14:25 +0000 (GMT) Received: from gw.Awfulhak.org (gw.lan.Awfulhak.org [172.16.0.1]) by store.lan.Awfulhak.org (Sophos Email Appliance) with ESMTP id 7CF7AC460F2_A411B79F; Tue, 23 Jun 2009 18:14:17 +0000 (GMT) Received: from localhost (brian@gw.lan.Awfulhak.org [172.16.0.1]) by gw.Awfulhak.org (8.14.3/8.14.3) with ESMTP id n5NIDX8G070233; Tue, 23 Jun 2009 11:13:33 -0700 (PDT) (envelope-from brian@Awfulhak.org) Date: Tue, 23 Jun 2009 11:13:48 -0700 From: Brian Somers To: John Baldwin Message-ID: <20090623111348.501f0abe@Awfulhak.org> In-Reply-To: <200906231744.n5NHit0f084841@svn.freebsd.org> References: <200906231744.n5NHit0f084841@svn.freebsd.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.2; i386-portbld-freebsd8.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: svn-src-stable@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, svn-src-stable-other@FreeBSD.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 18:43:11 -0000 On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin wrote: > Author: jhb > Date: Tue Jun 23 17:44:55 2009 > New Revision: 194744 > URL: http://svn.freebsd.org/changeset/base/194744 > > Log: > MF7: If the running kernel has support for shm_open() and shm_unlink() as > system calls (i.e. 8.0+), then invoke the system calls instead of using > open/fcntl/unlink. > > Modified: > stable/4/lib/libc/ (props changed) > stable/4/lib/libc/gen/posixshm.c In preparation for the 4.12 release? ;^1 -- Brian Somers Don't _EVER_ lose your sense of humour ! From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 19:25:21 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1F4201065670; Tue, 23 Jun 2009 19:25:21 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E4B698FC18; Tue, 23 Jun 2009 19:25:20 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 846A046B1A; Tue, 23 Jun 2009 15:25:20 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id 99CC38A085; Tue, 23 Jun 2009 15:25:19 -0400 (EDT) From: John Baldwin To: Brian Somers Date: Tue, 23 Jun 2009 15:18:37 -0400 User-Agent: KMail/1.9.7 References: <200906231744.n5NHit0f084841@svn.freebsd.org> <20090623111348.501f0abe@Awfulhak.org> In-Reply-To: <20090623111348.501f0abe@Awfulhak.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906231518.37803.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 23 Jun 2009 15:25:19 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: svn-src-stable@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 19:25:21 -0000 On Tuesday 23 June 2009 2:13:48 pm Brian Somers wrote: > On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin wrote: > > Author: jhb > > Date: Tue Jun 23 17:44:55 2009 > > New Revision: 194744 > > URL: http://svn.freebsd.org/changeset/base/194744 > > > > Log: > > MF7: If the running kernel has support for shm_open() and shm_unlink() as > > system calls (i.e. 8.0+), then invoke the system calls instead of using > > open/fcntl/unlink. > > > > Modified: > > stable/4/lib/libc/ (props changed) > > stable/4/lib/libc/gen/posixshm.c > > In preparation for the 4.12 release? ;^1 I expect there will be several companies running 4.x binaries under 8.x kernels actually. There are ones doing it under 7.x now. -- John Baldwin From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 19:52:20 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1892F106564A for ; Tue, 23 Jun 2009 19:52:20 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outE.internet-mail-service.net (oute.internet-mail-service.net [216.240.47.228]) by mx1.freebsd.org (Postfix) with ESMTP id EE78C8FC13 for ; Tue, 23 Jun 2009 19:52:19 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id 73639B2A7D; Tue, 23 Jun 2009 15:11:15 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 6F97B2D6004; Tue, 23 Jun 2009 12:37:18 -0700 (PDT) Message-ID: <4A412EEE.1030503@elischer.org> Date: Tue, 23 Jun 2009 12:37:18 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: John Baldwin References: <200906231744.n5NHit0f084841@svn.freebsd.org> <20090623111348.501f0abe@Awfulhak.org> <200906231518.37803.jhb@freebsd.org> In-Reply-To: <200906231518.37803.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Brian Somers , svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, svn-src-stable@freebsd.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 19:52:20 -0000 John Baldwin wrote: > On Tuesday 23 June 2009 2:13:48 pm Brian Somers wrote: >> On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin wrote: >>> Author: jhb >>> Date: Tue Jun 23 17:44:55 2009 >>> New Revision: 194744 >>> URL: http://svn.freebsd.org/changeset/base/194744 >>> >>> Log: >>> MF7: If the running kernel has support for shm_open() and shm_unlink() as >>> system calls (i.e. 8.0+), then invoke the system calls instead of using >>> open/fcntl/unlink. >>> >>> Modified: >>> stable/4/lib/libc/ (props changed) >>> stable/4/lib/libc/gen/posixshm.c >> In preparation for the 4.12 release? ;^1 > > I expect there will be several companies running 4.x binaries under 8.x > kernels actually. There are ones doing it under 7.x now. this is going to break my 1.0 compatibility right? > From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 20:22:03 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C93F71065672; Tue, 23 Jun 2009 20:22:03 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id E975A8FC18; Tue, 23 Jun 2009 20:22:02 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id 9CC9346B1A; Tue, 23 Jun 2009 16:22:02 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id A3E448A079; Tue, 23 Jun 2009 16:22:01 -0400 (EDT) From: John Baldwin To: Julian Elischer Date: Tue, 23 Jun 2009 16:21:55 -0400 User-Agent: KMail/1.9.7 References: <200906231744.n5NHit0f084841@svn.freebsd.org> <200906231518.37803.jhb@freebsd.org> <4A412EEE.1030503@elischer.org> In-Reply-To: <4A412EEE.1030503@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906231621.56531.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 23 Jun 2009 16:22:01 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Brian Somers , svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, svn-src-stable@freebsd.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 20:22:04 -0000 On Tuesday 23 June 2009 3:37:18 pm Julian Elischer wrote: > John Baldwin wrote: > > On Tuesday 23 June 2009 2:13:48 pm Brian Somers wrote: > >> On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin wrote: > >>> Author: jhb > >>> Date: Tue Jun 23 17:44:55 2009 > >>> New Revision: 194744 > >>> URL: http://svn.freebsd.org/changeset/base/194744 > >>> > >>> Log: > >>> MF7: If the running kernel has support for shm_open() and shm_unlink() as > >>> system calls (i.e. 8.0+), then invoke the system calls instead of using > >>> open/fcntl/unlink. > >>> > >>> Modified: > >>> stable/4/lib/libc/ (props changed) > >>> stable/4/lib/libc/gen/posixshm.c > >> In preparation for the 4.12 release? ;^1 > > > > I expect there will be several companies running 4.x binaries under 8.x > > kernels actually. There are ones doing it under 7.x now. > > this is going to break my 1.0 compatibility right? No, not at all. 1.0 binaries do not use libc.so.4. -- John Baldwin From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 21:00:01 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1A61A1065679 for ; Tue, 23 Jun 2009 21:00:01 +0000 (UTC) (envelope-from julian@elischer.org) Received: from outJ.internet-mail-service.net (outj.internet-mail-service.net [216.240.47.233]) by mx1.freebsd.org (Postfix) with ESMTP id D83648FC21 for ; Tue, 23 Jun 2009 21:00:00 +0000 (UTC) (envelope-from julian@elischer.org) Received: from idiom.com (mx0.idiom.com [216.240.32.160]) by out.internet-mail-service.net (Postfix) with ESMTP id B2289B4F5A; Tue, 23 Jun 2009 16:33:56 -0700 (PDT) X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e X-Client-Authorized: MaGic Cook1e Received: from julian-mac.elischer.org (home.elischer.org [216.240.48.38]) by idiom.com (Postfix) with ESMTP id 7C1552D600D; Tue, 23 Jun 2009 13:59:59 -0700 (PDT) Message-ID: <4A414250.3090103@elischer.org> Date: Tue, 23 Jun 2009 14:00:00 -0700 From: Julian Elischer User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302) MIME-Version: 1.0 To: John Baldwin References: <200906231744.n5NHit0f084841@svn.freebsd.org> <200906231518.37803.jhb@freebsd.org> <4A412EEE.1030503@elischer.org> <200906231621.56531.jhb@freebsd.org> In-Reply-To: <200906231621.56531.jhb@freebsd.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Brian Somers , svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, svn-src-stable@freebsd.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 21:00:01 -0000 John Baldwin wrote: > On Tuesday 23 June 2009 3:37:18 pm Julian Elischer wrote: >> John Baldwin wrote: >>> On Tuesday 23 June 2009 2:13:48 pm Brian Somers wrote: >>>> On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin > wrote: >>>>> Author: jhb >>>>> Date: Tue Jun 23 17:44:55 2009 >>>>> New Revision: 194744 >>>>> URL: http://svn.freebsd.org/changeset/base/194744 >>>>> >>>>> Log: >>>>> MF7: If the running kernel has support for shm_open() and shm_unlink() > as >>>>> system calls (i.e. 8.0+), then invoke the system calls instead of > using >>>>> open/fcntl/unlink. >>>>> >>>>> Modified: >>>>> stable/4/lib/libc/ (props changed) >>>>> stable/4/lib/libc/gen/posixshm.c >>>> In preparation for the 4.12 release? ;^1 >>> I expect there will be several companies running 4.x binaries under 8.x >>> kernels actually. There are ones doing it under 7.x now. >> this is going to break my 1.0 compatibility right? > > No, not at all. 1.0 binaries do not use libc.so.4. > but you are taking away the semsys syscall right? From owner-svn-src-stable-other@FreeBSD.ORG Tue Jun 23 21:06:49 2009 Return-Path: Delivered-To: svn-src-stable-other@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C5911065686; Tue, 23 Jun 2009 21:06:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from cyrus.watson.org (cyrus.watson.org [65.122.17.42]) by mx1.freebsd.org (Postfix) with ESMTP id 4C4328FC20; Tue, 23 Jun 2009 21:06:49 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (66.111.2.69.static.nyinternet.net [66.111.2.69]) by cyrus.watson.org (Postfix) with ESMTPSA id F0CB446B9B; Tue, 23 Jun 2009 17:06:48 -0400 (EDT) Received: from jhbbsd.hudson-trading.com (unknown [209.249.190.8]) by bigwig.baldwin.cx (Postfix) with ESMTPA id E2F508A085; Tue, 23 Jun 2009 17:06:47 -0400 (EDT) From: John Baldwin To: Julian Elischer Date: Tue, 23 Jun 2009 17:05:38 -0400 User-Agent: KMail/1.9.7 References: <200906231744.n5NHit0f084841@svn.freebsd.org> <200906231621.56531.jhb@freebsd.org> <4A414250.3090103@elischer.org> In-Reply-To: <4A414250.3090103@elischer.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200906231705.39061.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.0.1 (bigwig.baldwin.cx); Tue, 23 Jun 2009 17:06:48 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.95.1 at bigwig.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-2.5 required=4.2 tests=AWL,BAYES_00,RDNS_NONE autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on bigwig.baldwin.cx Cc: Brian Somers , svn-src-all@freebsd.org, src-committers@freebsd.org, svn-src-stable-other@freebsd.org, svn-src-stable@freebsd.org Subject: Re: svn commit: r194744 - in stable/4/lib/libc: . gen X-BeenThere: svn-src-stable-other@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the old stable src trees List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Jun 2009 21:06:50 -0000 On Tuesday 23 June 2009 5:00:00 pm Julian Elischer wrote: > John Baldwin wrote: > > On Tuesday 23 June 2009 3:37:18 pm Julian Elischer wrote: > >> John Baldwin wrote: > >>> On Tuesday 23 June 2009 2:13:48 pm Brian Somers wrote: > >>>> On Tue, 23 Jun 2009 17:44:55 +0000 (UTC), John Baldwin > > wrote: > >>>>> Author: jhb > >>>>> Date: Tue Jun 23 17:44:55 2009 > >>>>> New Revision: 194744 > >>>>> URL: http://svn.freebsd.org/changeset/base/194744 > >>>>> > >>>>> Log: > >>>>> MF7: If the running kernel has support for shm_open() and shm_unlink() > > as > >>>>> system calls (i.e. 8.0+), then invoke the system calls instead of > > using > >>>>> open/fcntl/unlink. > >>>>> > >>>>> Modified: > >>>>> stable/4/lib/libc/ (props changed) > >>>>> stable/4/lib/libc/gen/posixshm.c > >>>> In preparation for the 4.12 release? ;^1 > >>> I expect there will be several companies running 4.x binaries under 8.x > >>> kernels actually. There are ones doing it under 7.x now. > >> this is going to break my 1.0 compatibility right? > > > > No, not at all. 1.0 binaries do not use libc.so.4. > > > but you are taking away the semsys syscall right? That is not in this change, and no I am not taking it away. I am merely not supporting it for 8.0+ binaries. The actual system call will continue to exist and work for old binaries. However, new binaries should not use it (and in fact no binaries since 5.0 are likely using it since 5.0 and later all have separate syscalls for the various SYSV IPC methods). -- John Baldwin