Annotation of 42BSD/usr.lib/libpc/GET.c, revision 1.1

1.1     ! root        1: /* Copyright (c) 1979 Regents of the University of California */
        !             2: 
        !             3: static char sccsid[] = "@(#)GET.c 1.2 6/10/81";
        !             4: 
        !             5: #include "h00vars.h"
        !             6: 
        !             7: GET(curfile)
        !             8: 
        !             9:        register struct iorec   *curfile;
        !            10: {
        !            11:        if (curfile->funit & FWRITE) {
        !            12:                ERROR("%s: Attempt to read, but open for writing\n",
        !            13:                        curfile->pfname);
        !            14:                return;
        !            15:        }
        !            16:        IOSYNC(curfile);
        !            17:        if (curfile->funit & EOFF) {
        !            18:                ERROR("%s: Tried to read past end of file\n", curfile->pfname);
        !            19:                return;
        !            20:        }
        !            21:        curfile->funit |= SYNC;
        !            22: }

unix.superglobalmegacorp.com

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