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
174 #define _FILEEXT_SETUP(fp, fext) \ argument
176 (fp)->_ext._base = __BIONIC_CAST(reinterpret_cast, unsigned char*, fext); \
177 memset(_EXT(fp), 0, sizeof(struct __sfileext)); \
178 _EXT(fp)->_caller_handles_locking = true; \
218 #define cantwrite(fp) ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp)) argument
224 #define HASUB(fp) (_UB(fp)._base != NULL) argument
225 #define FREEUB(fp) \ argument
227 if (_UB(fp)._base != (fp)->_ubuf) free(_UB(fp)._base); \
228 _UB(fp)._base = NULL; \
231 #define FLOCKFILE(fp) \ argument
232 if (!_EXT(fp)->_caller_handles_locking) flockfile(fp)
233 #define FUNLOCKFILE(fp) \ argument
234 if (!_EXT(fp)->_caller_handles_locking) funlockfile(fp)
252 wint_t __fputwc_unlock(wchar_t wc, FILE* fp);
263 #define CHECK_FP(fp) \ argument
264 if (fp == nullptr) __fortify_fatal("%s: null FILE*", __FUNCTION__)
291 #define WCIO_GET(fp) (_EXT(fp) ? &(_EXT(fp)->_wcio) : NULL) argument
297 #define _SET_ORIENTATION(fp, mode) \ argument
299 struct wchar_io_data* _wcio = WCIO_GET(fp); \
303 #define WCIO_FREE(fp) \ argument
305 struct wchar_io_data* _wcio = WCIO_GET(fp); \