V6/usr/source/iolib/ceof.c

Find at most related files.
including files from this version of Unix.

# include "ciodec.c"
ceof (fn)
int fn;
{
struct fileps *fp;
fp = &IEH3fpts[fn];
if (fp->wrflag > 0 && fp->eoferr == 2)
	return(1);
else return(0);
}
cerr (fn)
int fn;
{
struct fileps *fp;
fp = &IEH3fpts[fn];
if (fp->eoferr == 0) fp->eoferr = 1;
if (fp->wrflag > 0 && fp->eoferr == 3)
	return(1);
else return(0);
}