From owner-freebsd-hackers@FreeBSD.ORG Thu Jan 12 09:56:58 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 7148D106566C; Thu, 12 Jan 2012 09:56:58 +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 A6D888FC0A; Thu, 12 Jan 2012 09:56:57 +0000 (UTC) Received: by mx0.hoeg.nl (Postfix, from userid 1000) id C77E92A28CDE; Thu, 12 Jan 2012 10:56:56 +0100 (CET) Date: Thu, 12 Jan 2012 10:56:56 +0100 From: Ed Schouten To: Eitan Adler Message-ID: <20120112095656.GD5300@hoeg.nl> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="1IYcr18XUmgwOrO2" Content-Disposition: inline In-Reply-To: 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 09:56:58 -0000 --1IYcr18XUmgwOrO2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello Eitan, * Eitan Adler , 20120112 06:01: > This is an implementation of dup3 for FreeBSD: > man page here (with a FreeBSD patch coming soon): > https://www.kernel.org/doc/man-pages/online/pages/man2/dup.2.html >=20 > Is this implementation correct? If so any objection to adding this as > a supported syscall? 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()? Thanks, --=20 Ed Schouten WWW: http://80386.nl/ --1IYcr18XUmgwOrO2 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (FreeBSD) iQIcBAEBAgAGBQJPDq5oAAoJEG5e2P40kaK7rgoQAKnJvxf+ILpBiLJRkrnFJbXn ZV8DhTu1bBcAwSdmPvkJofHocNXyJyZPBqnNPhPVtAxAvJWiK9860kptsJYzjUN8 vIeoEThQjsWIIGl3XvRWCObDdDr6cfvww62Dz+mh3DgXse1Wx4GjgvebaKZKiDtQ 8/nV2PUKTmDjUDfRimjHzbyp1f91gYM5arLl6k7B9CYVhQEcPBfSHJ1e34VFupb6 630jyNghdg1zRkvLXA4xo9vBwOKH4on0XBwQwvqyTwwfLr0kVZun+g22QeI/oaXI saBwMrssG7u/b+2/9ifXVI85i06c8LVr+5o48gEWHHpHgcq4V/A0rIyCA/2dwwPu u8Mldbdng/SqQlztvfBVBBpworJqsbZNbwkCPNMR3l+42bQWhfigIHXgDQ7VawOa zqK624aEjAs05tbr99VxuF3tZcdSO1b7S5jinV4Ipzm2ARnReBmRRNOM1kG5gUed q4v4L3C8RwbqlsvfQdvnrUrp7EM+WQWF0zA23Wkf7BTBbHNQO6+qygauF1A12uo6 PUA+PhM1aYEH0Hevz7xoR4BDODiGue7CdOo4xLZDrRyTXEelMO8LdYy6bU1WyTQL C/t6nHfEHRQ4wqn7MY5a7rP7WajVw9tD4fp4PDzZTI2ZxXCcvrlQ4sZg9ratqS+F lkgzLGD47Z/6sr3YxgYp =hOWz -----END PGP SIGNATURE----- --1IYcr18XUmgwOrO2--