Subject: Re: wrap up of pipe(2)
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <woods@weird.com>
List: tech-userlevel
Date: 10/15/2001 13:07:38
[ On Monday, October 15, 2001 at 16:37:25 (+0200), Andreas Persson wrote: ]
> Subject: Re: wrap up of pipe(2)
>
> A more pressing problem in my opinion is that some ioctls return int,
> when they should be returning off_t, or perhaps size_t. Look at FIONREAD,
> for example. If used on a vnode and a system with 32 bit ints, it will
> simply truncate the file size.
Maybe it should do what read(2) and readv(2) do and return with EINVAL
set when the value to be returned is larger than INT_MAX?
--
Greg A. Woods
+1 416 218-0098 VE3TCP <gwoods@acm.org> <woods@robohack.ca>
Planix, Inc. <woods@planix.com>; Secrets of the Weird <woods@weird.com>