Index | Thread | Search

From:
Jonathan Gray <jsg@jsg.id.au>
Subject:
Re: add fpurge(3) history
To:
Ingo Schwarze <schwarze@usta.de>
Cc:
tech@openbsd.org
Date:
Tue, 10 Jun 2025 23:20:22 +1000

Download raw body.

Thread
On Tue, Jun 10, 2025 at 02:49:26PM +0200, Ingo Schwarze wrote:
> Hello Jonathan,
> 
> Jonathan Gray wrote on Tue, Jun 10, 2025 at 11:37:05AM +1000:
> 
> > fpurge() was added by Keith Bostic in December 1988
> 
> I'm unable to confirm this claim, SCCS history of the file
> fpurge.c only goes back to 91/01/20.  Then again, it is not unusual
> for the CSRG to only start SCCS control of pieces of code months or
> even years after it was already released.

lib/libc/stdio/flsbuf.c in Reno

lib/libc/stdio/wbuf.c SCCS 5.4
5.4 88/12/19 13:35:59 bostic
add fpurge

> 
> > and first appeared in 4.3BSD-Reno.
> 
> But that part is definitely correct, it was neither in Tahoe
> nor in Net/1, so OK schwarze@.
> 
> If you want, you can optionally shorten your text to
> 
>   .At v4
>   and
>   .Fn fpurge
>   in
>   .Bx 4.3 Reno .
> 
> Yours,
>   Ingo
> 
> 
> > Index: fflush.3
> > ===================================================================
> > RCS file: /cvs/src/lib/libc/stdio/fflush.3,v
> > diff -u -p -r1.19 fflush.3
> > --- fflush.3	4 Jun 2025 00:21:20 -0000	1.19
> > +++ fflush.3	10 Jun 2025 01:13:09 -0000
> > @@ -126,3 +126,7 @@ The
> >  .Fn fflush
> >  function first appeared in
> >  .At v4 .
> > +The
> > +.Fn fpurge
> > +function first appeared in
> > +.Bx 4.3 Reno .
>