Home
last modified time | relevance | path

Searched refs:__modeflags (Results 1 – 25 of 28) sorted by relevance

12

/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdio/
A D_stdio.h180 (((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 …]
A Dsetvbuf.c42 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()
A D_trans2w.c34 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()
A Dfwide.c20 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()
A Dfreopen.c43 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()
A D_stdio.c215 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 …]
A D_trans2r.c34 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()
A D_fopen.c49 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()
A Dungetwc.c27 || ((stream->__modeflags & __FLAG_UNGOT) in ungetwc()
28 && ((stream->__modeflags & 1) || stream->__ungot[1])) in ungetwc()
38 stream->__ungot[(++stream->__modeflags) & 1] = c; in ungetwc()
A Dfgetwc.c37 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()
A Dungetc.c59 || ((stream->__modeflags & __FLAG_UNGOT) in ungetc()
60 && ((stream->__modeflags & 1) || stream->__ungot[1])) in ungetc()
68 stream->__ungot[(++stream->__modeflags) & 1] = c; in ungetc()
A Dfflush.c47 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()
A Dfmemopen.c55 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()
A Dfclose.c68 stream->__modeflags &= (__FLAG_FREEBUF|__FLAG_FREEFILE); in fclose()
69 stream->__modeflags |= (__FLAG_READONLY|__FLAG_WRITEONLY); in fclose()
A Dfgetc.c34 if (stream->__modeflags & __FLAG_UNGOT) { /* Use ungots first. */ in __fgetc_unlocked()
35 unsigned char uc = stream->__ungot[(stream->__modeflags--) & 1]; in __fgetc_unlocked()
A Dfread.c35 while (stream->__modeflags & __FLAG_UNGOT) { in fread_unlocked()
36 *buffer++ = stream->__ungot[(stream->__modeflags--) & 1]; in fread_unlocked()
A Dvsnprintf.c35 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);
A D__fpurge.c31 stream->__modeflags &= ~(__MASK_READING|__FLAG_WRITING); in __fpurge()
A D_adjust_pos.c25 if ((corr = stream->__modeflags & __MASK_READING) != 0) { in __stdio_adjust_position()
A Dftello.c39 && (stream->__modeflags & __FLAG_APPEND)) in FTELL()
A D_READ.c33 assert(!(stream->__modeflags & __FLAG_UNGOT)); in __stdio_READ()
A D_rfill.c31 assert(!(stream->__modeflags & __FLAG_UNGOT)); in __stdio_rfill()
A Dfcloseall.c46 if ((f->__modeflags & (__FLAG_READONLY|__FLAG_WRITEONLY)) in fcloseall()
A Dfseeko.c46 stream->__modeflags &= in FSEEK()
/l4re-core-master/uclibc/lib/contrib/uclibc/libc/sysdeps/linux/common/bits/
A DuClibc_stdio.h219 unsigned short __modeflags; member
360 ((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 16 milliseconds

12