Subject: Re: wrap up of pipe(2)
To: NetBSD Userlevel Technical Discussion List <tech-userlevel@NetBSD.ORG>
From: Greg A. Woods <email@example.com>
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 <firstname.lastname@example.org> <email@example.com>
Planix, Inc. <firstname.lastname@example.org>; Secrets of the Weird <email@example.com>