Searched refs:__modeflags (Results 1 – 25 of 28) sorted by relevance
12
180 (((S)->__modeflags & (__FLAG_WRITING|__FLAG_WIDE)) \197 ((void)((S)->__modeflags |= __FLAG_NARROW))199 ((void)((S)->__modeflags |= __FLAG_WIDE))217 ((void)((S)->__modeflags |= __FLAG_EOF))219 ((void)((S)->__modeflags |= __FLAG_ERROR))222 ((void)((S)->__modeflags &= ~__FLAG_EOF))224 ((void)((S)->__modeflags &= ~__FLAG_ERROR))227 ((void)((S)->__modeflags &= ~__MASK_READING))229 ((void)((S)->__modeflags &= ~__FLAG_WRITING))267 do { if ((S)->__modeflags & __FLAG_FREEBUF) \[all …]
42 if (stream->__modeflags & (__MASK_READING|__FLAG_WRITING)) { in setvbuf()49 if (stream->__modeflags & (__MASK_READING|__FLAG_WRITING in setvbuf()57 stream->__modeflags &= ~(__MASK_BUFMODE); /* Clear current mode */ in setvbuf()58 stream->__modeflags |= mode * __FLAG_LBF; /* and set new one. */ in setvbuf()72 if (stream->__modeflags & __FLAG_FREEBUF) { in setvbuf()73 stream->__modeflags &= ~(__FLAG_FREEBUF); in setvbuf()77 stream->__modeflags |= alloc_flag; in setvbuf()
34 if (!(stream->__modeflags & oflag)) { in __stdio_trans2w_o()35 if (stream->__modeflags & (__FLAG_NARROW|__FLAG_WIDE)) { in __stdio_trans2w_o()39 stream->__modeflags |= oflag; in __stdio_trans2w_o()43 if (stream->__modeflags & __FLAG_READONLY) { in __stdio_trans2w_o()67 || (stream->__modeflags & __FLAG_UNGOT)) in __stdio_trans2w_o()69 ((stream->__modeflags & __FLAG_APPEND) in __stdio_trans2w_o()
20 if (mode && !(stream->__modeflags & (__FLAG_WIDE|__FLAG_NARROW))) { in fwide()21 stream->__modeflags |= ((mode > 0) ? __FLAG_WIDE : __FLAG_NARROW); in fwide()24 mode = (stream->__modeflags & __FLAG_WIDE) in fwide()25 - (stream->__modeflags & __FLAG_NARROW); in fwide()27 assert((stream->__modeflags & (__FLAG_WIDE|__FLAG_NARROW)) in fwide()
43 dynmode = (stream->__modeflags & (__FLAG_FREEBUF|__FLAG_FREEFILE)); in freopen()45 stream->__modeflags &= ~(__FLAG_FREEBUF|__FLAG_FREEFILE); in freopen()48 if ((stream->__modeflags & (__FLAG_READONLY|__FLAG_WRITEONLY)) in freopen()64 stream->__modeflags = __FLAG_READONLY|__FLAG_WRITEONLY|__FLAG_FAILED_FREOPEN; in freopen()68 stream->__modeflags |= dynmode; in freopen()
215 ptr->__modeflags = (__FLAG_READONLY|__FLAG_WRITEONLY); in _stdio_term()261 _stdio_streams[0].__modeflags ^= __FLAG_LBF; in _stdio_init()263 _stdio_streams[1].__modeflags ^= __FLAG_LBF; in _stdio_init()338 if ((stream->__modeflags & (__FLAG_READONLY|__FLAG_WRITEONLY)) in _stdio_validate_FILE()341 assert(stream->__modeflags == (__FLAG_READONLY|__FLAG_WRITEONLY)); in _stdio_validate_FILE()358 if (stream->__modeflags & __FLAG_UNGOT) { in _stdio_validate_FILE()367 assert(!(stream->__modeflags & __FLAG_UNGOT)); in _stdio_validate_FILE()375 assert((stream->__modeflags & __MASK_BUFMODE) <= __FLAG_NBF); in _stdio_validate_FILE()391 assert(!(stream->__modeflags & __FLAG_UNGOT)); in _stdio_validate_FILE()406 assert(!(stream->__modeflags & __FLAG_UNGOT)); in _stdio_validate_FILE()[all …]
34 if (!(stream->__modeflags & oflag)) { in __stdio_trans2r_o()35 if (stream->__modeflags & (__FLAG_NARROW|__FLAG_WIDE)) { in __stdio_trans2r_o()39 stream->__modeflags |= oflag; in __stdio_trans2r_o()43 if (stream->__modeflags & __FLAG_WRITEONLY) { in __stdio_trans2r_o()
49 assert(!(stream->__modeflags & __FLAG_FREEBUF)); in _stdio_fopen()102 stream->__modeflags = __FLAG_FREEFILE; in _stdio_fopen()145 stream->__modeflags &= __FLAG_FREEFILE; in _stdio_fopen()148 stream->__modeflags |= /* Note: Makes assumptions about flag vals! */ in _stdio_fopen()172 stream->__modeflags |= __FLAG_LBF; in _stdio_fopen()179 stream->__modeflags |= __FLAG_FREEBUF; in _stdio_fopen()212 if (!(stream->__modeflags & __FLAG_FREEFILE)) in _stdio_fopen()
27 || ((stream->__modeflags & __FLAG_UNGOT) in ungetwc()28 && ((stream->__modeflags & 1) || stream->__ungot[1])) in ungetwc()38 stream->__ungot[(++stream->__modeflags) & 1] = c; in ungetwc()
37 if (stream->__modeflags & __FLAG_UNGOT) { /* Any ungetwc()s? */ in fgetwc_unlocked()38 if (((stream->__modeflags & 1) || stream->__ungot[1])) { in fgetwc_unlocked()44 wi = stream->__ungot[(stream->__modeflags--) & 1]; in fgetwc_unlocked()97 stream->__modeflags |= __FLAG_ERROR; in fgetwc_unlocked()
59 || ((stream->__modeflags & __FLAG_UNGOT) in ungetc()60 && ((stream->__modeflags & 1) || stream->__ungot[1])) in ungetc()68 stream->__ungot[(++stream->__modeflags) & 1] = c; in ungetc()
47 if ((stream->__modeflags & (__FLAG_READONLY|__FLAG_WRITEONLY|__FLAG_FAILED_FREOPEN)) in _stdio_openlist_dec_use()105 if (!(((stream->__modeflags | bufmask) in fflush_unlocked()132 else if (stream->__modeflags & (__MASK_READING|__FLAG_READONLY)) { in fflush_unlocked()164 if (stream && (stream->__modeflags & (__MASK_READING|__FLAG_READONLY))) { in fflush_unlocked()
55 if (COOKIE->fp->__modeflags & __FLAG_APPEND) { in fmo_write()155 if (fp->__modeflags & __FLAG_READONLY) { in fmemopen()158 if ((fp->__modeflags & __FLAG_APPEND) && (len > 0)) { in fmemopen()
68 stream->__modeflags &= (__FLAG_FREEBUF|__FLAG_FREEFILE); in fclose()69 stream->__modeflags |= (__FLAG_READONLY|__FLAG_WRITEONLY); in fclose()
34 if (stream->__modeflags & __FLAG_UNGOT) { /* Use ungots first. */ in __fgetc_unlocked()35 unsigned char uc = stream->__ungot[(stream->__modeflags--) & 1]; in __fgetc_unlocked()
35 while (stream->__modeflags & __FLAG_UNGOT) { in fread_unlocked()36 *buffer++ = stream->__ungot[(stream->__modeflags--) & 1]; in fread_unlocked()
35 f.__modeflags = (__FLAG_NARROW|__FLAG_WRITEONLY|__FLAG_WRITING); in vsnprintf()109 f.f.__modeflags = (__FLAG_NARROW|__FLAG_WRITEONLY|__FLAG_WRITING);194 f.__modeflags = (__FLAG_NARROW|__FLAG_WRITEONLY|__FLAG_WRITING);
31 stream->__modeflags &= ~(__MASK_READING|__FLAG_WRITING); in __fpurge()
25 if ((corr = stream->__modeflags & __MASK_READING) != 0) { in __stdio_adjust_position()
39 && (stream->__modeflags & __FLAG_APPEND)) in FTELL()
33 assert(!(stream->__modeflags & __FLAG_UNGOT)); in __stdio_READ()
31 assert(!(stream->__modeflags & __FLAG_UNGOT)); in __stdio_rfill()
46 if ((f->__modeflags & (__FLAG_READONLY|__FLAG_WRITEONLY)) in fcloseall()
46 stream->__modeflags &= in FSEEK()
219 unsigned short __modeflags; member360 ((void)((__stream)->__modeflags &= ~(__FLAG_EOF|__FLAG_ERROR)))361 #define __FEOF_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_EOF)362 #define __FERROR_UNLOCKED(__stream) ((__stream)->__modeflags & __FLAG_ERROR)
Completed in 19 milliseconds