Lines Matching refs:fp
151 #define _EXT(fp) reinterpret_cast<__sfileext*>((fp)->_ext._base) argument
153 #define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base)) argument
156 #define _UB(fp) _EXT(fp)->_ub argument
157 #define _FLOCK(fp) _EXT(fp)->_lock argument
159 #define _FILEEXT_INIT(fp) \ argument
161 _UB(fp)._base = NULL; \
162 _UB(fp)._size = 0; \
163 WCIO_INIT(fp); \
167 pthread_mutex_init(&_FLOCK(fp), &attr); \
169 _EXT(fp)->_caller_handles_locking = false; \
218 #define cantwrite(fp) \ argument
219 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && \
220 __swsetup(fp))
226 #define HASUB(fp) (_UB(fp)._base != NULL) argument
227 #define FREEUB(fp) { \ argument
228 if (_UB(fp)._base != (fp)->_ubuf) \
229 free(_UB(fp)._base); \
230 _UB(fp)._base = NULL; \
236 #define HASLB(fp) ((fp)->_lb._base != NULL) argument
237 #define FREELB(fp) { \ argument
238 free((char *)(fp)->_lb._base); \
239 (fp)->_lb._base = NULL; \
242 #define FLOCKFILE(fp) if (!_EXT(fp)->_caller_handles_locking) flockfile(fp) argument
243 #define FUNLOCKFILE(fp) if (!_EXT(fp)->_caller_handles_locking) funlockfile(fp) argument
268 wint_t __fputwc_unlock(wchar_t wc, FILE *fp);