* Copyright (c) 1979 The Regents of the University of California.
* %sccs.include.redist.c%
static char sccsid
[] = "@(#)UNSYNC.c 1.5 (Berkeley) %G%";
* push back last char read to prepare for formatted read
register struct iorec
*curfile
;
if (curfile
->funit
& FWRITE
) {
ERROR("%s: Attempt to read, but open for writing\n",
if (curfile
->funit
& EOFF
) {
ERROR("%s: Tried to read past end of file\n", curfile
->pfname
);
if ((curfile
->funit
& SYNC
) == 0) {
ungetc(*curfile
->fileptr
, curfile
->fbuf
);