if(a
->aunit
>=MXUNIT
|| a
->aunit
<0) err(a
->aerr
,101,"endfile");
if(b
->ufd
==NULL
) return(0);
if( b
->useek
==0) return(0);
if(b
->uwrt
) nowreading(b
);
if(b
->url
) return(0); /*don't truncate direct files*/
if(loc
==len
|| b
->useek
==0 || b
->ufnm
==NULL
) return(0);
strcpy(nm
,"tmp.FXXXXXX");
if(b
->uwrt
) nowreading(b
);
n
=fread(buf
,1,loc
>128?128:(int)loc
,b
->ufd
);
if((m
=fork())==-1) continue;
execl("/bin/cp","cp",nm
,b
->ufnm
,0);
execl("/usr/bin/cp","cp",nm
,b
->ufnm
,0);
fprintf(stdout
,"no cp\n");
if(m
!=0) err(ax
->aerr
,111,"endfile");
err(ax
->aerr
,111,"endfile");