3bb4198f42751a620c72614b9bec98e949774f02
/* Copyright (c) 1979 Regents of the University of California */
static char sccsid
[] = "@(#)PCLOSE.c 1.2 %G%";
register struct iorec
*next
;
while(next
!= FILNIL
&& next
->flev
<= level
) {
if ((next
->funit
& FDEF
) == 0) {
if (ferror(next
->fbuf
)) {
ERROR(ECLOSE
, next
->pfname
);
if ((next
->funit
& TEMP
) != 0 &&
ERROR(EREMOVE
, next
->pfname
);
_actfile
[next
->fblk
] = FILNIL
;