Lines Matching refs:fp
121 register FILE *fp; in fopen() local
127 if ((fp = __sfp ()) == NULL) in fopen()
133 fp->_flags = 0; /* release */ in fopen()
135 __lock_close_recursive (fp->_lock); in fopen()
141 _newlib_flockfile_start (fp); in fopen()
143 fp->_file = f; in fopen()
144 fp->_flags = flags; in fopen()
145 fp->_cookie = (void *) fp; in fopen()
146 fp->_read = __sread; in fopen()
147 fp->_write = __swrite; in fopen()
148 fp->_seek = __sseek; in fopen()
149 fp->_close = __sclose; in fopen()
151 if (fp->_flags & __SAPP) in fopen()
152 fseek ( fp, 0, SEEK_END); in fopen()
155 if (__stextmode (fp->_file)) in fopen()
156 fp->_flags |= __SCLE; in fopen()
159 _newlib_flockfile_end (fp); in fopen()
160 return fp; in fopen()