From owner-freebsd-hackers Sun Jan 28 19: 5:24 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from earth.backplane.com (earth-nat-cw.backplane.com [208.161.114.67]) by hub.freebsd.org (Postfix) with ESMTP id 9B5CE37B404 for ; Sun, 28 Jan 2001 19:05:06 -0800 (PST) Received: (from dillon@localhost) by earth.backplane.com (8.11.1/8.9.3) id f0T33qg60603; Sun, 28 Jan 2001 19:03:52 -0800 (PST) (envelope-from dillon) Date: Sun, 28 Jan 2001 19:03:52 -0800 (PST) From: Matt Dillon Message-Id: <200101290303.f0T33qg60603@earth.backplane.com> To: Luigi Rizzo Cc: usebsd@free.fr (mouss), drosih@rpi.edu, hackers@FreeBSD.ORG, wollman@khavrinen.lcs.mit.edu Subject: Re: [kernel patch] fcntl(...) to close many descriptors References: <200101281837.f0SIbGI24332@iguana.aciri.org> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG : :> I agree that breaking coherence is bad, though I find fcntl is the kind of :> functions to use when you don't have a more specific one:) : :do we have (or could we design) a generic mechanism for machine-specific :syscalls which are not available on all OS ? : :basically i am thinking of something like : : generic_syscall("fdcloseall", ....); : :In this way it would be clear what the non-portable pieces of code :are, and the mechanism would be extensible with no changes to :libraries and syscalls. You could even have dynamically-loaded :modules implementing new "syscalls". : : cheers : luigi : :> then I'd propose :> int fdcloseall(int start); There is work going on for the AIX equivalent using fcntl(). We should not create a syscall (it's unnecessary)... if you want a fdcloseall() function call, it should be in libc and use the fcntl. I would support one or the other, but not both. I'd recommend the AIX fcntl API, since it's been around a whole lot longer. -Matt To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message