From nobody@FreeBSD.org  Sun Mar  9 14:31:53 2008
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 179411065676
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Mar 2008 14:31:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id F2FC78FC25
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  9 Mar 2008 14:31:52 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m29EShQS090424
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 9 Mar 2008 14:28:43 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m29EShdF090423;
	Sun, 9 Mar 2008 14:28:43 GMT
	(envelope-from nobody)
Message-Id: <200803091428.m29EShdF090423@www.freebsd.org>
Date: Sun, 9 Mar 2008 14:28:43 GMT
From: Ighighi <ighighi@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: add closefrom() system call
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121522
>Category:       kern
>Synopsis:       [libc] [patch] [request] add closefrom() system call
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    delphij
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 09 14:40:00 UTC 2008
>Closed-Date:    Tue Jun 16 13:31:56 UTC 2009
>Last-Modified:  Tue Jun 16 13:31:56 UTC 2009
>Originator:     Ighighi
>Release:        6.3-STABLE
>Organization:
>Environment:
FreeBSD orion 6.3-STABLE FreeBSD 6.3-STABLE #0: Mon Mar  3 04:45:31 VET 2008     root@orion:/usr/obj/usr/src/sys/CUSTOM  i386

>Description:
Given that NetBSD, OpenBSD and DragonFly (as well as Solaris and maybe
others) support it, it'd be nice and worthwhile to implement it too on FreeBSD.

I posted a shar on freebsd-hackers "add closefrom() call revisited" available at
http://lists.freebsd.org/pipermail/freebsd-hackers/2007-September/021735.html

It contains 4 possible implementations and comments that, I expect, addresses
the points raised in the first posting at:
http://lists.freebsd.org/pipermail/freebsd-hackers/2007-July/021132.html
>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->delphij 
Responsible-Changed-By: rwatson 
Responsible-Changed-When: Sun Mar 9 15:23:15 UTC 2008 
Responsible-Changed-Why:  
Assign to delphij, who has previously expressed interest in working on 
closefrom().  Note that the shar pointed to does not address the audit 
requirements for new system calls -- if you decide to add this system 
call, please give me a ping so I can add an audit event to OpenBSM. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=121522 
State-Changed-From-To: open->closed 
State-Changed-By: jhb 
State-Changed-When: Tue Jun 16 13:30:31 UTC 2009 
State-Changed-Why:  
A kernel-side implementation of closefrom(2) has just been committed.  I 
got it from rwatson@ but it was probably inspired by your original e-mail 
thread.  Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121522 
>Unformatted:
