Date: Sat, 4 Aug 2012 22:31:27 +0200 From: Jilles Tjoelker <jilles@stack.nl> To: Jukka Ukkonen <jau@iki.fi> Cc: freebsd-gnats-submit@FreeBSD.org, freebsd-standards@FreeBSD.org Subject: Re: standards/169962: fcntl() to support F_DUPFD_CLOEXEC specified in POSIX.1-2008 Message-ID: <20120804203127.GA99630@stack.nl> In-Reply-To: <201207180840.q6I8ePQh056273@red.freebsd.org> References: <201207180840.q6I8ePQh056273@red.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Jul 18, 2012 at 08:40:25AM +0000, Jukka Ukkonen wrote: > >Number: 169962 > >Category: standards > >Synopsis: fcntl() to support F_DUPFD_CLOEXEC specified in POSIX.1-2008 > While in the process of adding F_DUPFD_CLOEXEC which is required by > POSIX.1-2008 I also added F_DUP2FD_CLOEXEC for symmetry and analogy > with F_DUPFD<->F_DUP2FD. Although this is not standardized, it looks like it will be wrappable if Linux's dup3() is standardized instead of F_DUP2FD_CLOEXEC (which seems likely because dup3() is a fairly obvious extension to dup2() while F_DUP2FD is not standardized). This approach avoids adding another syscall. -- Jilles Tjoelker
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120804203127.GA99630>