Annotation of cci/usr/src/usr.lib/libI77/dolio.c, revision 1.1.1.1

1.1       root        1: /*
                      2:  * Copyright (c) 1980 Regents of the University of California.
                      3:  * All rights reserved.  The Berkeley software License Agreement
                      4:  * specifies the terms and conditions for redistribution.
                      5:  *
                      6:  *     @(#)dolio.c     5.1     6/7/85
                      7:  */
                      8: 
                      9: /*
                     10:  * list directed i/o common routines
                     11:  */
                     12: 
                     13: #include "fio.h"
                     14: #include "lio.h"
                     15: 
                     16: 
                     17: c_le(a,parmflag) cilist *a;
                     18: {      int n;
                     19:        lfname = NULL;
                     20:        elist = NO;
                     21:        sequential=external=formatted= LISTDIRECTED;
                     22:        fmtbuf = "ext list io";
                     23:        errflag = a->cierr;
                     24:        endflag = a->ciend;
                     25:        lunit = a->ciunit;
                     26:        if(not_legal(lunit)) err(errflag,F_ERUNIT,fmtbuf)
                     27:        curunit = &units[lunit];
                     28:        if(!curunit->ufd && (n=fk_open(parmflag,SEQ,FMT,(ftnint)lunit)))
                     29:                err(errflag,n,fmtbuf)
                     30:        cf = curunit->ufd;
                     31:        elist = YES;
                     32:        lfname = curunit->ufnm;
                     33:        scale=recpos=cursor=0;
                     34:        cplus=cblank=NO;
                     35:        if(!curunit->ufmt) err(errflag,F_ERNOFIO,fmtbuf)
                     36:        if(curunit->url) err(errflag,F_ERNOSIO,fmtbuf)
                     37:        return(OK);
                     38: }
                     39: 
                     40: do_lio(type,number,ptr,len) ftnint *number,*type; flex *ptr; ftnlen len;
                     41: {
                     42:        return((*lioproc)(number,ptr,len,*type));
                     43: }

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.