From owner-freebsd-hackers Mon Jan 29 11:26:53 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 507EC37B404 for ; Mon, 29 Jan 2001 11:26:36 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0TJQYK34514; Mon, 29 Jan 2001 11:26:34 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101291926.f0TJQYK34514@iguana.aciri.org> Subject: Re: [kernel patch] fcntl(...) to close many descriptors In-Reply-To: <20010129112337.Y26076@fw.wintelcom.net> from Alfred Perlstein at "Jan 29, 2001 11:23:37 am" To: bright@wintelcom.net (Alfred Perlstein) Date: Mon, 29 Jan 2001 11:26:29 -0800 (PST) Cc: rizzo@aciri.org, wollman@khavrinen.lcs.mit.edu, hackers@FreeBSD.ORG 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 > > The generic method would basically have the same interface as ioctl() > > or fcntl(), with the fd replaced by a pointer to the function name. > > Actually, the easiest way if to make a sysctl that exports the syscall > number to useland. > > mysubsystem.foosyscall: 188 but there is a problem with syscall() in that according to the manpages it cannot handle in/out parameters as instead it is supported by ioctl/fcntl am i mistaken ? cheers luigi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message