Subject: Re: How to translate this stdio code to netbsd?
To: John F. Woods <jfw@FunHouse.com>
From: Greg A. Woods <email@example.com>
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.
There's a possibly newer version available through the WWW interface:
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. <firstname.lastname@example.org>; Secrets Of The Weird <email@example.com>