Lines Matching refs:fp
170 #define _EXT(fp) __BIONIC_CAST(reinterpret_cast, struct __sfileext*, (fp)->_ext._base) argument
172 #define _UB(fp) _EXT(fp)->_ub argument
173 #define _FLOCK(fp) _EXT(fp)->_lock argument
175 #define _FILEEXT_SETUP(fp, fext) \ argument
177 (fp)->_ext._base = __BIONIC_CAST(reinterpret_cast, unsigned char*, fext); \
178 memset(_EXT(fp), 0, sizeof(struct __sfileext)); \
179 _EXT(fp)->_caller_handles_locking = true; \
219 #define cantwrite(fp) ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp)) argument
225 #define HASUB(fp) (_UB(fp)._base != NULL) argument
226 #define FREEUB(fp) \ argument
228 if (_UB(fp)._base != (fp)->_ubuf) free(_UB(fp)._base); \
229 _UB(fp)._base = NULL; \
232 #define FLOCKFILE(fp) \ argument
233 if (!_EXT(fp)->_caller_handles_locking) flockfile(fp)
234 #define FUNLOCKFILE(fp) \ argument
235 if (!_EXT(fp)->_caller_handles_locking) funlockfile(fp)
253 wint_t __fputwc_unlock(wchar_t wc, FILE* fp);
264 #define CHECK_FP(fp) \ argument
265 if (fp == nullptr) __fortify_fatal("%s: null FILE*", __FUNCTION__)
292 #define WCIO_GET(fp) (_EXT(fp) ? &(_EXT(fp)->_wcio) : (struct wchar_io_data*)0) argument
294 #define _SET_ORIENTATION(fp, mode) \ argument
296 struct wchar_io_data* _wcio = WCIO_GET(fp); \
300 #define WCIO_FREE(fp) \ argument
302 struct wchar_io_data* _wcio = WCIO_GET(fp); \