Searched refs:rpos (Results 1 - 25 of 27) sorted by relevance

12

/seL4-refos-master/libs/libmuslc/src/stdio/
H A Dungetc.c9 if (!f->rpos) __toread(f);
10 if (!f->rpos || f->rpos <= f->buf - UNGET) {
15 *--f->rpos = c;
H A Dext2.c5 return f->rend - f->rpos;
10 size_t size = f->rend - f->rpos;
13 return (const char *)f->rpos;
18 f->rpos += inc;
H A Dfgetln.c11 if ((z=memchr(f->rpos, '\n', f->rend - f->rpos))) {
12 ret = (char *)f->rpos;
14 f->rpos = (void *)z;
H A Dungetwc.c19 if (!f->rpos) __toread(f);
20 if (!f->rpos || c == WEOF || (l = wcrtomb((void *)mbc, c, 0)) < 0 ||
21 f->rpos < f->buf - UNGET + l) {
27 if (isascii(c)) *--f->rpos = c;
28 else memcpy(f->rpos -= l, mbc, l);
H A Dfgets.c24 z = memchr(f->rpos, '\n', f->rend - f->rpos);
25 k = z ? z - f->rpos + 1 : f->rend - f->rpos;
27 memcpy(p, f->rpos, k);
28 f->rpos += k;
H A Dfgetwc.c15 if (f->rpos < f->rend) {
16 l = mbrtowc(&wc, (void *)f->rpos, f->rend - f->rpos, &st);
18 f->rpos += l + !l; /* l==0 means 1 byte, null */
22 f->rpos++;
H A Dfflush.c31 if (f->rpos < f->rend) f->seek(f, f->rpos-f->rend, SEEK_CUR);
35 f->rpos = f->rend = 0;
H A Dvswscanf.c14 f->rpos = f->rend = 0;
18 f->rpos = f->buf;
24 *buf = *f->rpos++;
H A Dgetdelim.c28 z = memchr(f->rpos, delim, f->rend - f->rpos);
29 k = z ? z - f->rpos + 1 : f->rend - f->rpos;
43 memcpy(*s+i, f->rpos, k);
44 f->rpos += k;
H A D__stdio_exit.c13 if (f->rpos < f->rend) f->seek(f, f->rpos-f->rend, SEEK_CUR);
H A Dfread.c16 if (f->rend - f->rpos > 0) {
18 k = MIN(f->rend - f->rpos, l);
19 memcpy(dest, f->rpos, k);
20 f->rpos += k;
H A D__stdio_read.c19 f->rpos = f->buf;
21 if (f->buf_size) buf[len-1] = *f->rpos++;
H A Dfseek.c6 if (whence == SEEK_CUR) off -= f->rend - f->rpos;
21 f->rpos = f->rend = 0;
H A D__towrite.c11 f->rpos = f->rend = 0;
H A D__string_read.c12 f->rpos = (void *)(src+len);
H A D__toread.c12 f->rpos = f->rend = f->buf + f->buf_size;
H A Dext.c53 f->rpos = f->rend = 0;
H A Dftell.c13 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
H A Dvfwscanf.c80 ((f)->rpos < (f)->rend && *(f)->rpos < 128 ? *(f)->rpos++ : (getwc)(f))
84 ((f)->rend && (c)<128U ? *--(f)->rpos : ungetwc((c),(f)))
/seL4-refos-master/libs/libmuslc/src/internal/
H A Dshgetc.h6 #define shcnt(f) ((f)->shcnt + ((f)->rpos - (f)->rend))
8 #define shgetc(f) (((f)->rpos < (f)->shend) ? *(f)->rpos++ : __shgetc(f))
9 #define shunget(f) ((f)->shend ? (void)(f)->rpos-- : (void)0)
H A Dshgetc.c6 f->shcnt = f->rend - f->rpos;
8 f->shend = f->rpos + lim;
20 if (f->shlim && f->rend - f->rpos > f->shlim - f->shcnt - 1)
21 f->shend = f->rpos + (f->shlim - f->shcnt - 1);
24 if (f->rend) f->shcnt += f->rend - f->rpos + 1;
25 if (f->rpos[-1] != c) f->rpos[-1] = c;
H A Dstdio_impl.h24 unsigned char *rpos, *rend; member in struct:_IO_FILE
87 ( ((f)->rpos < (f)->rend) ? *(f)->rpos++ : __uflow((f)) )
/seL4-refos-master/libs/libmuslc/src/stdlib/
H A Dwcstod.c19 f->rpos = f->buf;
24 *buf = *f->rpos++;
36 f.rpos = f.rend = 0;
H A Dwcstol.c21 f->rpos = f->buf;
26 *buf = *f->rpos++;
38 f.rpos = f.rend = 0;
H A Dstrtod.c10 .buf = (void *)s, .rpos = (void *)s,

Completed in 52 milliseconds

12