Home
last modified time | relevance | path

Searched refs:unget (Results 1 – 12 of 12) sorted by relevance

/picolibc-latest/newlib/libc/tinystdio/
Dfgetc.c38 __ungetc_t unget; in fgetc() local
45 if ((unget = __atomic_exchange_ungetc(&stream->unget, 0)) != 0) in fgetc()
46 return (unsigned char) (unget - 1); in fgetc()
Dfgetwc.c41 __ungetc_t unget; in fgetwc() local
48 if ((unget = __atomic_exchange_ungetc(&stream->unget, 0)) != 0) in fgetwc()
49 return (wint_t) (unget - 1); in fgetwc()
Dfread.c57 __ungetc_t unget; in fread() local
65 if ((unget = __atomic_exchange_ungetc(&stream->unget, 0)) != 0) { in fread()
66 *cp++ = (unget - 1); in fread()
Dvfscanf.c101 INT unget; member
103 #define SCANF_CONTEXT_INIT { .len = 0, .unget = MY_EOF }
116 c = context->unget; in scanf_getc()
117 context->unget = MY_EOF; in scanf_getc()
133 context->unget = c; in scanf_ungetc()
840 if (!IS_EOF(context.unget)) in vfscanf()
841 UNGETC(context.unget, stream); in vfscanf()
850 if (!IS_EOF(context.unget)) in vfscanf()
851 UNGETC(context.unget, stream); in vfscanf()
Dungetc.c46 if (!__atomic_compare_exchange_ungetc(&stream->unget, 0, (__ungetc_t) (unsigned char) c + 1 )) in ungetc()
Dungetwc.c44 if (!__atomic_compare_exchange_ungetc(&stream->unget, 0, (__ungetc_t) c + 1)) in ungetwc()
Dftell.c49 if (__atomic_load_ungetc(&stream->unget) != 0) in FTELL()
Dfseek.c49 (void) __atomic_exchange_ungetc(&stream->unget, 0); in FSEEK()
Dfreopen.c62 (void) __atomic_exchange_ungetc(&stream->unget, 0); in freopen()
Dstdio.h83 __ungetc_t unget; /* ungetc() buffer */ member
/picolibc-latest/
DREADME.md247 * Make freopen clear the unget buffer. Thanks to Mostafa Salman.
/picolibc-latest/newlib/
DChangeLog-20158872 * libc/stdio/fflush.c (_fflush_r): Clear unget buffer when