Date: Wed, 20 Mar 2013 13:18:56 +0400 From: Gleb Smirnoff <glebius@FreeBSD.org> To: Jilles Tjoelker <jilles@FreeBSD.org> Cc: svn-src-head@freebsd.org, svn-src-all@freebsd.org, src-committers@freebsd.org Subject: Re: svn commit: r248534 - in head: lib/libc/sys share/man/man4 sys/kern sys/sys Message-ID: <20130320091856.GI76816@FreeBSD.org> In-Reply-To: <201303192058.r2JKwIwg039788@svn.freebsd.org> References: <201303192058.r2JKwIwg039788@svn.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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> J> Log: J> Implement SOCK_CLOEXEC, SOCK_NONBLOCK and MSG_CMSG_CLOEXEC. J> 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> 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> 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> 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. -- Totus tuus, Glebius.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130320091856.GI76816>