|
|
1.1 root 1: /* Copyright (c) 1979 Regents of the University of California */
2:
3: static char sccsid[] = "@(#)FLUSH.c 1.1 10/29/80";
4:
5: #include "h00vars.h"
6: #include "h01errs.h"
7:
8: FLUSH(curfile)
9:
10: register struct iorec *curfile;
11: {
12: if (curfile->fblk >= MAXFILES || _actfile[curfile->fblk] != curfile) {
13: ERROR(ENOFILE, 0);
14: return;
15: }
16: if (curfile->funit & FWRITE) {
17: fflush(curfile->fbuf);
18: }
19: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.