1 /* Copyright (c) 1979 Regents of the University of California */ 2 3 static char sccsid[] = "@(#)TEOF.c 1.2 03/07/81"; 4 5 #include "h00vars.h" 6 #include "h01errs.h" 7 8 bool 9 TEOF(filep) 10 11 register struct iorec *filep; 12 { 13 if (filep->fblk >= MAXFILES || _actfile[filep->fblk] != filep) { 14 ERROR(ENOFILE, 0); 15 return; 16 } 17 if (filep->funit & EOFF) 18 return TRUE; 19 IOSYNC(filep); 20 if (filep->funit & EOFF) 21 return TRUE; 22 return FALSE; 23 } 24