Lines Matching refs:fp
60 register FILE * fp) in fclose() argument
64 if (fp == NULL) in fclose()
67 CHECK_INIT (rptr, fp); in fclose()
75 if (!(fp->_flags2 & __SNLK)) in fclose()
76 _flockfile (fp); in fclose()
78 if (fp->_flags == 0) /* not open! */ in fclose()
80 if (!(fp->_flags2 & __SNLK)) in fclose()
81 _funlockfile (fp); in fclose()
89 r = (fp->_flags & __SWR) ? _sflush ( fp) : 0; in fclose()
94 r = _sflush ( fp); in fclose()
96 if (fp->_close != NULL && fp->_close (fp->_cookie) < 0) in fclose()
98 if (fp->_flags & __SMBF) in fclose()
99 free ((char *) fp->_bf._base); in fclose()
100 if (HASUB (fp)) in fclose()
101 FREEUB (rptr, fp); in fclose()
102 if (HASLB (fp)) in fclose()
103 FREELB (rptr, fp); in fclose()
105 fp->_flags = 0; /* release this FILE for reuse */ in fclose()
106 if (!(fp->_flags2 & __SNLK)) in fclose()
107 _funlockfile (fp); in fclose()
109 __lock_close_recursive (fp->_lock); in fclose()