4BSD/usr/src/lib/libpc/PFLUSH.c

Compare this file to the similar file:
Show the results in this format:

/* Copyright (c) 1979 Regents of the University of California */

static char sccsid[] = "@(#)PFLUSH.c 1.1 10/29/80";

#include "h00vars.h"

/*
 * insure that a usable image is in the buffer window
 */
PFLUSH()
{
	register struct iorec	*next;

	next = _fchain.fchain;
	while(next != FILNIL) {
		if ((next->funit & (FDEF | FREAD)) == 0) {
			fflush(next->fbuf);
		}
		next = next->fchain;
	}
}