From owner-svn-src-head@FreeBSD.ORG Sat Apr 6 15:34:34 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 18C29D0F; Sat, 6 Apr 2013 15:34:34 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (unknown [IPv6:2001:610:1108:5012::107]) by mx1.freebsd.org (Postfix) with ESMTP id D03F2205; Sat, 6 Apr 2013 15:34:33 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 53507120207; Sat, 6 Apr 2013 17:34:17 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id 3DC552848C; Sat, 6 Apr 2013 17:34:17 +0200 (CEST) Date: Sat, 6 Apr 2013 17:34:17 +0200 From: Jilles Tjoelker To: Peter Wemm Subject: Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys Message-ID: <20130406153417.GA29467@stack.nl> References: <201303192058.r2JKwIwg039788@svn.freebsd.org> <20130320091856.GI76816@FreeBSD.org> <20130320235001.GA60980@stack.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, Gleb Smirnoff , src-committers@freebsd.org X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 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, 06 Apr 2013 15:34:34 -0000 On Sat, Apr 06, 2013 at 01:06:24AM -0700, Peter Wemm wrote: > On Wed, Mar 20, 2013 at 4:50 PM, Jilles Tjoelker wrote: > > On Wed, Mar 20, 2013 at 01:18:56PM +0400, Gleb Smirnoff wrote: > >> On Tue, Mar 19, 2013 at 08:58:18PM +0000, Jilles Tjoelker wrote: > >> J> Author: jilles > >> J> Date: Tue Mar 19 20:58:17 2013 > >> J> New Revision: 248534 > >> J> URL: http://svnweb.freebsd.org/changeset/base/248534 > >> J> Log: > >> J> Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC. > >[..] > >> IMO, it won't hurt if changes like this (bringing in new functionality) > >> would bump __FreeBSD_version. > > This change can be detected via the new #defines, and I plan to add > > similar changes in the near future (see the hackers@ mail about this > > patch; some of them cannot be detected via the preprocessor or even at > > compile time). Therefore, I think a __FreeBSD_version bump is not yet > > appropriate. > FYI.. The heimdal krb5 in /usr/src auto-detects these and uses them, > as do a couple of random ports. These binaries will no longer run on > kernel.old, or 9.x. > This is probably worth making a warning about because it's been a > while since installworld/reboot/installkernel discipline has been > required and folks have probably got lazy. Heck, you have been able > to do an installworld from 9.x -> 10.x for a while without requiring a > reboot. (I know, because I've developed this bad habit) Note that MSG_CMSG_CLOEXEC is harmlessly ignored by older kernels. I'm planning to add pipe2() and accept4() system calls and mkostemp() and mkostemps() libc functions, which may cause similar issues. How about this change to UPDATING? I'm inserting it into the middle to keep the file sorted by date. Index: UPDATING =================================================================== --- UPDATING (revision 249203) +++ UPDATING (working copy) @@ -33,6 +33,12 @@ removed. Kernel option `options ATA_CAM` is now permanently enabled and removed. +20130319: + SOCK_CLOEXEC and SOCK_NONBLOCK flags have been added to socket(2) + and socketpair(2). Software, in particular Kerberos, may + automatically detect and use these during building. The resulting + binaries will not work on older kernels. + 20130308: CTL_DISABLE has also been added to the sparc64 GENERIC (for further information, see the respective 20130304 entry). -- Jilles Tjoelker