From owner-svn-src-all@FreeBSD.ORG Wed Mar 20 23:50:16 2013 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 4E6B7B2D; Wed, 20 Mar 2013 23:50:16 +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 17739B36; Wed, 20 Mar 2013 23:50:16 +0000 (UTC) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id C42C01203C9; Thu, 21 Mar 2013 00:50:01 +0100 (CET) Received: by snail.stack.nl (Postfix, from userid 1677) id AEA682848C; Thu, 21 Mar 2013 00:50:01 +0100 (CET) Date: Thu, 21 Mar 2013 00:50:01 +0100 From: Jilles Tjoelker To: Gleb Smirnoff Subject: Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys Message-ID: <20130320235001.GA60980@stack.nl> References: <201303192058.r2JKwIwg039788@svn.freebsd.org> <20130320091856.GI76816@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130320091856.GI76816@FreeBSD.org> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Mar 2013 23:50:16 -0000 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. > J> This change allows creating file descriptors with close-on-exec set in some > J> situations. SOCK_CLOEXEC and SOCK_NONBLOCK can be OR'ed in socket() and > J> socketpair()'s type parameter, and MSG_CMSG_CLOEXEC to recvmsg() makes file > J> descriptors (SCM_RIGHTS) atomically close-on-exec. > J> The numerical values for SOCK_CLOEXEC and SOCK_NONBLOCK are as in NetBSD. > J> MSG_CMSG_CLOEXEC is the first free bit for MSG_*. > J> The SOCK_* flags are not passed to MAC because this may cause incorrect > J> failures and can be done later via fcntl() anyway. On the other hand, audit > J> is expected to cope with the new flags. > J> For MSG_CMSG_CLOEXEC, unp_externalize() is extended to take a flags > J> argument. > 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. -- Jilles Tjoelker