Home
last modified time | relevance | path

Searched refs:rend (Results 1 – 23 of 23) sorted by relevance

/third_party/ulib/musl/src/internal/
A Dshgetc.c5 f->shcnt = f->rend - f->rpos; in __shlim()
9 f->shend = f->rend; in __shlim()
18 if (f->shlim && f->rend - f->rpos > f->shlim - f->shcnt - 1) in __shgetc()
21 f->shend = f->rend; in __shgetc()
22 if (f->rend) in __shgetc()
23 f->shcnt += f->rend - f->rpos + 1; in __shgetc()
A Dshgetc.h6 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend))
A Dstdio_impl.h25 unsigned char *rpos, *rend; member
93 #define getc_unlocked(f) (((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)))
/third_party/ulib/musl/src/stdio/
A Dfflush.c12 if (f->rpos < f->rend) in __fflush_unlocked()
13 f->seek(f, f->rpos - f->rend, SEEK_CUR); in __fflush_unlocked()
17 f->rpos = f->rend = 0; in __fflush_unlocked()
A D__stdio_exit.c9 if (f->rpos < f->rend) in close_file()
10 f->seek(f, f->rpos - f->rend, SEEK_CUR); in close_file()
A Dvswscanf.c14 f->rpos = f->rend = 0; in wstring_read()
19 f->rend = f->buf + k; in wstring_read()
A Dfseek.c6 off -= f->rend - f->rpos; in __fseeko_unlocked()
23 f->rpos = f->rend = 0; in __fseeko_unlocked()
A Dfread.c16 if (f->rend - f->rpos > 0) { in fread()
18 k = MIN(f->rend - f->rpos, l); in fread()
A Dfgets.c24 z = memchr(f->rpos, '\n', f->rend - f->rpos); in fgets()
25 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in fgets()
A Dfgetwc.c14 if (f->rpos < f->rend) { in __fgetwc_unlocked_internal()
15 l = mbrtowc(&wc, (void*)f->rpos, f->rend - f->rpos, &st); in __fgetwc_unlocked_internal()
A Dgetdelim.c28 z = memchr(f->rpos, delim, f->rend - f->rpos); in getdelim()
29 k = z ? z - f->rpos + 1 : f->rend - f->rpos; in getdelim()
A D__towrite.c10 f->rpos = f->rend = 0; in __towrite()
A D__toread.c12 f->rpos = f->rend = f->buf + f->buf_size; in __toread()
A D__string_read.c14 f->rend = (void*)(src + k); in __string_read()
A Dfgetln.c10 if ((z = memchr(f->rpos, '\n', f->rend - f->rpos))) { in fgetln()
A D__stdio_read.c16 f->rend = f->buf + cnt; in __stdio_read()
A Dftell.c11 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase); in __ftello_unlocked()
A Dvfwscanf.c82 #define getwc(f) ((f)->rpos < (f)->rend && *(f)->rpos < 128 ? *(f)->rpos++ : (getwc)(f))
85 #define ungetwc(c, f) ((f)->rend && (c) < 128U ? *--(f)->rpos : ungetwc((c), (f)))
A Dfmemopen.c41 f->rend = f->buf + rem; in mread()
/third_party/ulib/musl/src/stdlib/
A Dstrtol.c15 f.rend = (void*)-1; in strtox()
17 f.rend = (unsigned char*)s + (size_t)-1 / 2; in strtox()
A Dwcstod.c20 f->rend = f->buf + i; in do_read()
35 f.rpos = f.rend = 0; in wcstox()
A Dwcstol.c22 f->rend = f->buf + i; in do_read()
37 f.rpos = f.rend = 0; in wcstox()
A Dstrtod.c8 FILE f = {.buf = (void*)s, .rpos = (void*)s, .rend = (void*)-1, .lock = -1}; in strtox()

Completed in 20 milliseconds