Annotation of 43BSDTahoe/usr.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.2 6/10/81";
                      4: 
                      5: #include "h00vars.h"
                      6: 
                      7: struct iorec *
                      8: UNIT(curfile)
                      9: 
                     10:        register struct iorec   *curfile;
                     11: {
                     12:        if (curfile->fblk >= MAXFILES || _actfile[curfile->fblk] != curfile) {
                     13:                ERROR("Reference to an inactive file\n", 0);
                     14:                return;
                     15:        }
                     16:        if (curfile->funit & FDEF) {
                     17:                ERROR("%s: Reference to an inactive file\n", curfile->pfname);
                     18:                return;
                     19:        }
                     20:        return curfile;
                     21: }

unix.superglobalmegacorp.com

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