Subject: Re: How to translate this stdio code to netbsd?
To: John F. Woods <jfw@FunHouse.com>
From: Greg A. Woods <woods@kuma.web.net>
List: current-users
Date: 03/13/1996 08:23:33
[ On Tue, March 12, 1996 at 23:28:20 (-0500), John F. Woods wrote: ]
> Subject: Re: How to translate this stdio code to netbsd?
>
> And it occurs to me that it might be worth designing a stdio interface which
> "reads" n bytes by returning a pointer and advancing the read pointer by n,
> ASSUMING that there are n bytes available. One possible approach would be
> to have stdio refuse to refill the buffer until you call back to release
> the pointer, or you could just take your chances if you're foolish enough to
> call read again while you're still interested in the previous data.
It has already been done, IMO. Take a look at sfio from Vo & Korn @ ATT.
ftp://netlib.att.com/netlib/attgifts/sfio.shar
There's a possibly newer version available through the WWW interface:
http://www.research.att.com/orgs/ssr/book/reuse/
One application that already recommends the SFIO interface as a speed
enhancement is INN (unoff-v4 I think).
--
Greg A. Woods
+1 416 443-1734 VE3TCP robohack!woods
Planix, Inc. <woods@planix.com>; Secrets Of The Weird <woods@weird.com>