Home
last modified time | relevance | path

Searched refs:_r (Results 1 – 16 of 16) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c75 if (fp->_r <= 0 && __srefill(fp)) in fgetln()
79 if ((p = memchr(fp->_p, '\n', fp->_r)) != NULL) { in fgetln()
89 fp->_r -= len; in fgetln()
105 for (len = fp->_r, off = 0;; len += fp->_r) { in fgetln()
122 if ((p = memchr(fp->_p, '\n', fp->_r)) == NULL) in fgetln()
132 fp->_r -= diff; in fgetln()
Dgetdelim.c68 if (fp->_r <= 0 && __srefill(fp)) { in getdelim()
76 p = memchr(fp->_p, sep, fp->_r); in getdelim()
78 len = fp->_r; in getdelim()
115 fp->_r -= (int)len; in getdelim()
Dungetc.c112 if (fp->_r >= _UB(fp)._size && __submore(fp)) in ungetc()
115 inc_ret: fp->_r++; in ungetc()
136 fp->_ur = fp->_r; in ungetc()
142 fp->_r = 1; in ungetc()
Drget.c47 fp->_r--; in __srget()
Dfpurge.c57 fp->_r = 0; in fpurge()
Dvsscanf.c54 f._bf._size = f._r = strlen(str); in vsscanf()
Dwsetup.c61 fp->_r = 0; in __swsetup()
Dvswscanf.c81 f._bf._size = f._r = mlen; in vswscanf()
Dsetvbuf.c70 fp->_r = fp->_lbfsize = 0; in setvbuf()
/bionic/libc/stdio/
Drefill.c54 fp->_r = 0; /* largely a convenience for callers */ in __srefill()
87 if ((fp->_r = fp->_ur) != 0) { in __srefill()
113 fp->_r = (*fp->_read)(fp->_cookie, (char *)fp->_p, fp->_bf._size); in __srefill()
114 if (fp->_r <= 0) { in __srefill()
115 if (fp->_r == 0) in __srefill()
118 fp->_r = 0; in __srefill()
Dvfscanf.cpp115 while ((fp->_r > 0 || __srefill(fp) == 0) && isspace(*fp->_p)) nread++, fp->_r--, fp->_p++; in __svfscanf()
130 if (fp->_r <= 0 && __srefill(fp)) goto input_failure; in __svfscanf()
132 fp->_r--, fp->_p++; in __svfscanf()
306 if (fp->_r <= 0 && __srefill(fp)) goto input_failure; in __svfscanf()
315 if (--fp->_r > 0) { in __svfscanf()
352 fp->_r--; in __svfscanf()
366 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
382 if ((n = fp->_r) < width) { in __svfscanf()
392 fp->_r -= width; in __svfscanf()
441 fp->_r--; in __svfscanf()
[all …]
Dstdio.cpp190 fp->_r = 0; in __sfp()
359 fp->_r = 0; in freopen()
437 fp->_r = fp->_w = 0; in __FILE_close()
583 result -= fp->_r; in __ftello64_unlocked()
627 fp->_r = 0; in __fseeko64()
787 if (fp->_r <= 0) { in fgets_unlocked()
794 size_t len = fp->_r; in fgets_unlocked()
804 fp->_r -= len; in fgets_unlocked()
810 fp->_r -= len; in fgets_unlocked()
1109 if (fp->_r < 0) fp->_r = 0; in fread_unlocked()
[all …]
Dlocal.h63 int _r; /* read space left for getc() */ member
240 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
Dparsefloat.c175 if (--fp->_r > 0) in parsefloat()
/bionic/tests/
Dsetjmp_test.cpp177 #define GET_FREG(n) ({ double _r; asm volatile("fmov %0, d"#n : "=r"(_r) : :); _r; })
192 #define GET_FREG(n) ({ double _r; asm volatile("fcpyd %P0, d"#n : "=w"(_r) : :); _r;})
/bionic/libc/bionic/
Dwcstod.cpp63 f._bf._size = f._r = max_len; in wcstod()