Lines Matching refs:fp

81        register FILE *__restrict fp)  in freopen()  argument
87 CHECK_INIT (ptr, fp); in freopen()
95 oflags2 = fp->_flags2; in freopen()
97 _flockfile (fp); in freopen()
102 _funlockfile (fp); in freopen()
106 fclose ( fp); in freopen()
118 if (fp->_flags == 0) in freopen()
119 fp->_flags = __SEOF; /* hold on to it */ in freopen()
122 if (fp->_flags & __SWR) in freopen()
123 fflush ( fp); in freopen()
128 if (fp->_close != NULL && file != NULL) in freopen()
129 fp->_close (fp->_cookie); in freopen()
151 f = fp->_file; in freopen()
174 if (fp->_close != NULL) in freopen()
175 fp->_close (fp->_cookie); in freopen()
186 if (fp->_flags & __SMBF) in freopen()
187 free ((char *) fp->_bf._base); in freopen()
188 fp->_w = 0; in freopen()
189 fp->_r = 0; in freopen()
190 fp->_p = NULL; in freopen()
191 fp->_bf._base = NULL; in freopen()
192 fp->_bf._size = 0; in freopen()
193 fp->_lbfsize = 0; in freopen()
194 if (HASUB (fp)) in freopen()
195 FREEUB (ptr, fp); in freopen()
196 fp->_ub._size = 0; in freopen()
197 if (HASLB (fp)) in freopen()
198 FREELB (ptr, fp); in freopen()
199 fp->_lb._size = 0; in freopen()
200 fp->_flags &= ~__SORD; in freopen()
201 fp->_flags2 &= ~__SWID; in freopen()
202 memset (&fp->_mbstate, 0, sizeof (_mbstate_t)); in freopen()
207 fp->_flags = 0; /* set it free */ in freopen()
210 _funlockfile (fp); in freopen()
212 __lock_close_recursive (fp->_lock); in freopen()
221 fp->_flags = flags; in freopen()
222 fp->_file = f; in freopen()
223 fp->_cookie = (void *) fp; in freopen()
224 fp->_read = __sread; in freopen()
225 fp->_write = __swrite; in freopen()
226 fp->_seek = __sseek; in freopen()
227 fp->_close = __sclose; in freopen()
230 if (__stextmode (fp->_file)) in freopen()
231 fp->_flags |= __SCLE; in freopen()
235 _funlockfile (fp); in freopen()
239 return fp; in freopen()