Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c75 if (fp->_r <= 0 && __srefill(fp)) in fgetln()
79 if ((p = memchr((void *)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()
120 if ((p = memchr((void *)fp->_p, '\n', fp->_r)) == NULL) in fgetln()
131 fp->_r -= diff; in fgetln()
Drefill.c59 fp->_r = 0; /* largely a convenience for callers */ in __srefill()
90 if ((fp->_r = fp->_ur) != 0) { in __srefill()
116 fp->_r = (*fp->_read)(fp->_cookie, (char *)fp->_p, fp->_bf._size); in __srefill()
118 if (fp->_r <= 0) { in __srefill()
119 if (fp->_r == 0) in __srefill()
122 fp->_r = 0; in __srefill()
Dfgets.c65 if (fp->_r <= 0) { in fgets()
75 len = fp->_r; in fgets()
89 fp->_r -= len; in fgets()
96 fp->_r -= len; in fgets()
Dfseek.c93 curoff -= fp->_r; in fseeko()
159 curoff -= fp->_r; in fseeko()
171 curoff += fp->_r; /* kill off ungetc */ in fseeko()
178 n += fp->_r; in fseeko()
192 fp->_r = n - o; in fseeko()
211 fp->_r = 0; in fseeko()
218 if (__srefill(fp) || fp->_r < n) in fseeko()
221 fp->_r -= n; in fseeko()
240 fp->_r = 0; in fseeko()
Dvfscanf.c133 while ((fp->_r > 0 || __srefill(fp) == 0) && in __svfscanf()
135 nread++, fp->_r--, fp->_p++; in __svfscanf()
150 if (fp->_r <= 0 && __srefill(fp)) in __svfscanf()
154 fp->_r--, fp->_p++; in __svfscanf()
310 if (fp->_r <= 0 && __srefill(fp)) in __svfscanf()
320 if (--fp->_r > 0) in __svfscanf()
355 fp->_r--; in __svfscanf()
371 if (fp->_r <= 0 && __srefill(fp)) { in __svfscanf()
386 if ((n = fp->_r) < width) { in __svfscanf()
397 fp->_r -= width; in __svfscanf()
[all …]
Dgetdelim.c67 if (fp->_r <= 0 && __srefill(fp)) { in getdelim()
75 p = memchr(fp->_p, sep, (size_t)fp->_r); in getdelim()
77 len = fp->_r; in getdelim()
114 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.c55 f._bf._size = f._r = strlen(str); in vsscanf()
Dsscanf.c59 f._bf._size = f._r = strlen(str); in sscanf()
Dfclose.c59 fp->_r = fp->_w = 0; /* Mess up if reaccessed. */ in fclose()
Dwsetup.c61 fp->_r = 0; in __swsetup()
Dftell.c72 pos -= fp->_r; in ftello()
Dvswscanf.c81 f._bf._size = f._r = mlen; in vswscanf()
Dsetvbuf.c70 fp->_r = fp->_lbfsize = 0; in setvbuf()
Dfreopen.c111 fp->_r = 0; in freopen()
/bionic/libc/stdio/
Dfread.c70 if (fp->_r < 0) in fread()
71 fp->_r = 0; in fread()
86 size_t buffered_bytes = MIN((size_t) fp->_r, total); in fread()
89 fp->_r -= buffered_bytes; in fread()
Dlocal.h128 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
Dfindfp.c135 fp->_r = 0; in __sfp()
/bionic/tests/
Dsetjmp_test.cpp174 #define GET_FREG(n) ({ double _r; asm volatile("fmov %0, d"#n : "=r"(_r) : :); _r; })
189 #define GET_FREG(n) ({ double _r; asm volatile("fcpyd %P0, d"#n : "=w"(_r) : :); _r;})
/bionic/libc/include/
Dstdio.h110 int _r; /* read space left for getc() */ member