Subject: Re: Large inodes for ffs
To: Jason Thorpe <firstname.lastname@example.org>
From: Chris G. Demetriou <email@example.com>
Date: 03/24/1999 13:25:44
Jason Thorpe <firstname.lastname@example.org> writes:
> On 24 Mar 1999 11:21:00 -0800
> email@example.com (Chris G. Demetriou) wrote:
> > (2) i believe that the user-land interface could easily be exported a
> > different, better way that doesn't involve a new syscall.
> > e.g. fcntl(). fcntl() is "file control". it's ioctl-like already...
> Unfortunately, fcntl()'s interface is totally, completely, and utterly
> int fcntl(int fd, int cmd, int arg);
> That "int arg" is the killer; can't pass a pointer to data.
uh, that doesn't match either the prototype or syscall declaration on
NetBSD, though it does seem to match the NetBSD manual page.
further, if your argument were correct and the manual page actually
matched reality, existing fcntl() in NetBSD couldn't work properly,
since the locking-related controls pass in a pointer. 8-)
Looks to me like our fcntl() manual page is broken in several ways,
and should be updated to look more like the solaris manual page (which
provides the correct understanding of the nature of 'arg'). 8-)
Chris Demetriou - firstname.lastname@example.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.