From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 12 10:11:40 2012 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 805F9106566C; Thu, 12 Jan 2012 10:11:40 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from mx0.hoeg.nl (mx0.hoeg.nl [IPv6:2a01:4f8:101:5343::aa]) by mx1.freebsd.org (Postfix) with ESMTP id 3FEED8FC15; Thu, 12 Jan 2012 10:11:40 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id A3D222A28CEC; Thu, 12 Jan 2012 11:11:39 +0100 (CET) Date: Thu, 12 Jan 2012 11:11:39 +0100 From: Ed Schouten To: Eitan Adler Message-ID: <20120112101139.GE5300@hoeg.nl> References: <20120112095656.GD5300@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mjUDp/cLGeqUhYyE" Content-Disposition: inline In-Reply-To: <20120112095656.GD5300@hoeg.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: jilles@freebsd.org, FreeBSD Hackers , Colin Percival Subject: Re: dup3 syscall - atomic set O_CLOEXEC with dup2 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jan 2012 10:11:40 -0000 --mjUDp/cLGeqUhYyE Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Ed Schouten , 20120112 10:56: > I suspect that not long after we add dup3(), some random person asks us > to implement F_DUP3FD. Any chance you can implement this without using a > system call, but through fcntl()? Never mind. This seems to be non-trivial, as fcntl() just takes a single parameter and dup3() requires the newfd and the flags. --=20 Ed Schouten WWW: http://80386.nl/ --mjUDp/cLGeqUhYyE Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJPDrHbAAoJEG5e2P40kaK7xMgP/jyRYgPl97fnbSz4COGdXNG8 Nzb9VKzVGi+Q9PJDRjkmpLk/y1CK+PzBgomS5rjHvE8/kl/ai164eKT+wKaCUzIa DSJGE1rC0NpJaVqQlL8WrrMloK27w162Z1jyDLWR2vtsDp6lgBCpgAk5NEapq3li wtnkjgB3Xu/Hm89mHxpLgSXQsUvGV2F7Alk9wSYupZhqL6XHsTBbA60PhRFbgL3+ P3IrIvt/58IUJ6FiBwjfNEDqeiFDuJC7E7pDTspqa8l89pbC30yPoBgvS9N2zqSO AXnVA6Q6DHDBw0yDHkjgYgetC8g3Wr0JnXqbbEiPb9wk+lXjiYzgXehPgTfa1oIA 70i44f9vW9GTNdnLtse9OBXAo0mRR7bjMnOar7bHdVjh3wSyEiTG8sn9+jxQRhsn CHMU4k3w9OekuD3DS/sLPbv65MYurNJUjuakU6VQObCzAuWWR/Q6ufR6Hce4Gr8C 66f7KGtFb2rxk8iLGzeRhxtgxOneVlx6BssNHbCPacqL0UD1eKYuMPQv2gaJVnAK sSZsr5yzugwmcHTNkQ8Y4QVG5bml7zJ/S/ws8PC19MTabn9cvJnfLhJGSSWci40p M9SEz8fcvErGfNeBfOjjO0Ts+C7+mz70k4xw6pA77djkUuwkrTuLtF91wO0cHU82 djHT84UnSFAkov7qpjRu =wjkw -----END PGP SIGNATURE----- --mjUDp/cLGeqUhYyE--