Add original unix v6
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
# 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);
|
||||
}
|
||||
Reference in New Issue
Block a user