/*- * Copyright (c) 1979 The Regents of the University of California. * All rights reserved. * * %sccs.include.redist.c% */ #ifndef lint static char sccsid[] = "@(#)GET.c 1.3 (Berkeley) 04/09/90"; #endif /* not lint */ #include "h00vars.h" GET(curfile) register struct iorec *curfile; { if (curfile->funit & FWRITE) { ERROR("%s: Attempt to read, but open for writing\n", curfile->pfname); return; } IOSYNC(curfile); if (curfile->funit & EOFF) { ERROR("%s: Tried to read past end of file\n", curfile->pfname); return; } curfile->funit |= SYNC; }