Lines Matching refs:fp
40 fclose(FILE *fp) in fclose() argument
44 if (fp->_flags == 0) { /* not open! */ in fclose()
48 FLOCKFILE(fp); in fclose()
49 WCIO_FREE(fp); in fclose()
50 r = fp->_flags & __SWR ? __sflush(fp) : 0; in fclose()
51 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0) in fclose()
53 if (fp->_flags & __SMBF) in fclose()
54 free((char *)fp->_bf._base); in fclose()
55 if (HASUB(fp)) in fclose()
56 FREEUB(fp); in fclose()
57 if (HASLB(fp)) in fclose()
58 FREELB(fp); in fclose()
59 fp->_r = fp->_w = 0; /* Mess up if reaccessed. */ in fclose()
60 fp->_flags = 0; /* Release this FILE for reuse. */ in fclose()
61 FUNLOCKFILE(fp); in fclose()