|
|
1.1 root 1: /*
2: * list directed i/o common routines
3: */
4:
5: #include "fio.h"
6: #include "lio.h"
7:
8:
9: c_le(a,flag) cilist *a;
10: { int n;
11: lfname = NULL;
12: elist = NO;
13: sequential=external=formatted= LISTDIRECTED;
14: fmtbuf = "ext list io";
15: errflag = a->cierr;
16: endflag = a->ciend;
17: lunit = a->ciunit;
18: if(not_legal(lunit)) err(errflag,101,fmtbuf)
19: curunit = &units[lunit];
20: if(!curunit->ufd && (n=fk_open(flag,SEQ,FMT,lunit)))
21: err(errflag,n,fmtbuf)
22: cf = curunit->ufd;
23: elist = YES;
24: lfname = curunit->ufnm;
25: scale=recpos=cursor=0;
26: cplus=cblank=NO;
27: if(!curunit->ufmt) err(errflag,102,fmtbuf)
28: if(curunit->url) err(errflag,105,fmtbuf)
29: return(OK);
30: }
31:
32: do_lio(type,number,ptr,len) ftnint *number,*type; flex *ptr; ftnlen len;
33: {
34: return((*lioproc)(number,ptr,len,*type));
35: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.