8 if(f__curunit->uend || f__curunit->url <= f__recpos
9 || f__curunit->url == 1) return 0;
12 } while(++f__recpos < f__curunit->url);
18 if(f__curunit->uend) return(-1);
19 if((ch=getc(f__cf))!=EOF)
22 if(f__curunit->url>=f__recpos ||
33 err(f__elist->cierr,errno,"readingd");
39 if (f__recpos < f__hiwater)
40 f__recpos = f__hiwater;
41 if (f__curunit->url > 1)
42 while(f__recpos < f__curunit->url)
53 err(f__elist->cierr, 110, "dfe");
60 f__hiwater = f__cursor = 0;
71 f__formatted=f__external=1;
73 f__cursor=f__scale=f__recpos=0;
74 f__curunit = &f__units[a->ciunit];
75 if(a->ciunit>MXUNIT || a->ciunit<0)
76 err(a->cierr,101,"startchk");
77 if(f__curunit->ufd==NULL && fk_open(DIR,FMT,a->ciunit))
78 err(a->cierr,104,"dfe");
79 f__cf=f__curunit->ufd;
80 if(!f__curunit->ufmt) err(a->cierr,102,"dfe");
81 if(!f__curunit->useek) err(a->cierr,104,"dfe");
84 err(a->cierr,130,"dfe");
85 FSEEK(f__cf,(off_t)f__curunit->url * (a->cirec-1),SEEK_SET);
90 integer s_rdfe(a) cilist *a;
92 integer s_rdfe(cilist *a)
96 if(f__init != 1) f_init();
99 if(n=c_dfe(a))return(n);
100 if(f__curunit->uwrt && f__nowreading(f__curunit))
101 err(a->cierr,errno,"read start");
105 f__dorevert = f__donewrec = y_err;
107 if(pars_f(f__fmtbuf)<0)
108 err(a->cierr,100,"read start");
113 integer s_wdfe(a) cilist *a;
115 integer s_wdfe(cilist *a)
119 if(f__init != 1) f_init();
122 if(n=c_dfe(a)) return(n);
123 if(f__curunit->uwrt != 1 && f__nowwriting(f__curunit))
124 err(a->cierr,errno,"startwrt");
129 f__donewrec = y_newrec;
131 if(pars_f(f__fmtbuf)<0)
132 err(a->cierr,100,"startwrt");