Annotation of 40BSD/lib/libpc/UNIT.c, revision 1.1.1.1

1.1       root        1: /* Copyright (c) 1979 Regents of the University of California */
                      2: 
                      3: static char sccsid[] = "@(#)UNIT.c 1.1 10/29/80";
                      4: 
                      5: #include "h00vars.h"
                      6: #include "h01errs.h"
                      7: 
                      8: struct iorec *
                      9: UNIT(curfile)
                     10: 
                     11:        register struct iorec   *curfile;
                     12: {
                     13:        if (curfile->fblk >= MAXFILES || _actfile[curfile->fblk] != curfile) {
                     14:                ERROR(ENOFILE, 0);
                     15:                return;
                     16:        }
                     17:        if (curfile->funit & FDEF) {
                     18:                ERROR(EREFINAF, curfile->pfname);
                     19:                return;
                     20:        }
                     21:        return curfile;
                     22: }

unix.superglobalmegacorp.com

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