Home | History | Annotate | Download | only in stdio

Lines Matching refs:fp

40 extern void __fremovelock(FILE *fp);
43 fclose(FILE *fp)
47 if (fp->_flags == 0) { /* not open! */
51 WCIO_FREE(fp);
52 r = fp->_flags & __SWR ? __sflush(fp) : 0;
53 if (fp->_close != NULL && (*fp->_close)(fp->_cookie) < 0)
55 if (fp->_flags & __SMBF)
56 free((char *)fp->_bf._base);
57 if (HASUB(fp))
58 FREEUB(fp);
59 if (HASLB(fp))
60 FREELB(fp);
61 fp->_flags = 0; /* Release this FILE for reuse. */
62 fp->_r = fp->_w = 0; /* Mess up if reaccessed. */
63 __fremovelock(fp);