From owner-freebsd-hackers Sun Jan 28 12:45:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 933BF37B400 for ; Sun, 28 Jan 2001 12:45:15 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0SKjAN25209; Sun, 28 Jan 2001 12:45:10 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101282045.f0SKjAN25209@iguana.aciri.org> Subject: Re: [kernel patch] fcntl(...) to close many descriptors In-Reply-To: <20010128143117.A22348@spawn.nectar.com> from "Jacques A. Vidrine" at "Jan 28, 2001 2:31:17 pm" To: n@nectar.com (Jacques A. Vidrine) Date: Sun, 28 Jan 2001 12:45:10 -0800 (PST) Cc: rizzo@aciri.org, usebsd@free.fr, drosih@rpi.edu, hackers@FreeBSD.ORG, wollman@khavrinen.lcs.mit.edu X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > On Sun, Jan 28, 2001 at 10:37:16AM -0800, Luigi Rizzo wrote: > > 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", ....); > > Do you mean like syscall(2)? kind-of, though the function name should be a string and not an integer (easier to extend/allocate), and it should allow return values in user-supplied buffers, same as ioctl/fcntl calls do. cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message