Date: Sun, 28 Jan 2001 12:45:10 -0800 (PST) From: Luigi Rizzo <rizzo@aciri.org> To: n@nectar.com (Jacques A. Vidrine) Cc: rizzo@aciri.org, usebsd@free.fr, drosih@rpi.edu, hackers@FreeBSD.ORG, wollman@khavrinen.lcs.mit.edu Subject: Re: [kernel patch] fcntl(...) to close many descriptors Message-ID: <200101282045.f0SKjAN25209@iguana.aciri.org> In-Reply-To: <20010128143117.A22348@spawn.nectar.com> from "Jacques A. Vidrine" at "Jan 28, 2001 2:31:17 pm"
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101282045.f0SKjAN25209>