From owner-freebsd-hackers Mon Jan 29 6: 6:56 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from smtp.nettoll.com (matrix.nettoll.net [212.155.143.61]) by hub.freebsd.org (Postfix) with ESMTP id 9E7B637B69B for ; Mon, 29 Jan 2001 06:06:39 -0800 (PST) Received: by smtp.nettoll.com; Mon, 29 Jan 2001 15:03:26 +0100 (MET) Message-Id: <4.3.0.20010129151413.023e03a0@pop.free.fr> X-Sender: usebsd@pop.free.fr X-Mailer: QUALCOMM Windows Eudora Version 4.3 Date: Mon, 29 Jan 2001 15:17:22 +0100 To: Luigi Rizzo From: mouss Subject: Re: [kernel patch] fcntl(...) to close many descriptors Cc: drosih@rpi.edu, hackers@FreeBSD.ORG, wollman@khavrinen.lcs.mit.edu In-Reply-To: <200101281837.f0SIbGI24332@iguana.aciri.org> References: <01012820234100.00214@dades.chilali.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 10:37 28/01/01 -0800, Luigi Rizzo wrote: > 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". I see a meachanism like new_syscall(str, args) = syscall(hash(str), args) where hash() is chosen to guarantee unicity (that wouldn't be hard to find). we then have both performance (working with indexes instead of comparing strings) like what is currently available, and the flexibility of strings. Note that this goes in the same dynamic "wind" than loadable modules and the like: static gets old... cheers, mouss To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message