From owner-freebsd-hackers@FreeBSD.ORG Thu Jul 5 12:27:41 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BC66716A421 for ; Thu, 5 Jul 2007 12:27:41 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from www.pkgsrc-box.org (www.ostsee-abc.de [62.206.222.50]) by mx1.freebsd.org (Postfix) with ESMTP id 8C2DE13C448 for ; Thu, 5 Jul 2007 12:27:40 +0000 (UTC) (envelope-from joerg@britannica.bec.de) Received: from britannica.bec.de (www.pkgsrc-box.org [127.0.0.1]) by www.pkgsrc-box.org (Postfix) with ESMTP id 64E8EE7A3FA for ; Thu, 5 Jul 2007 12:27:35 +0000 (UTC) Received: by britannica.bec.de (Postfix, from userid 1000) id 882937D0F; Thu, 5 Jul 2007 14:26:50 +0200 (CEST) Date: Thu, 5 Jul 2007 14:26:50 +0200 From: Joerg Sonnenberger To: freebsd-hackers@freebsd.org Message-ID: <20070705122650.GE1302@britannica.bec.de> Mail-Followup-To: freebsd-hackers@freebsd.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.13 (2006-08-11) Subject: Re: add closefrom() call 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, 05 Jul 2007 12:27:41 -0000 On Wed, Jul 04, 2007 at 08:27:49PM -0400, Ighighi Ighighi wrote: > The closefrom() call, available in Solaris, is present in NetBSD since > version 3.0. > It is implemented with the F_CLOSEM fcntl() available since version 2.0. You could also add a system call like it was done in DragonFly. That might be even simpler to implement. Joerg