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

12

/barrelfish-2018-10-04/lib/libc/stdio/
H A Drget.c51 fp->_r--;
H A Dfgetws.c69 if (fp->_r <= 0 && __srefill(fp))
76 nl = memchr(fp->_p, '\n', fp->_r);
78 nl != NULL ? (nl - fp->_p + 1) : fp->_r,
93 src = memchr(fp->_p, '\0', fp->_r);
96 fp->_r -= (unsigned char *)src - fp->_p;
100 } while ((wsp == ws || wsp[-1] != L'\n') && n > 1 && (fp->_r > 0 ||
H A Drefill.c77 fp->_r = 0; /* largely a convenience for callers */
108 if ((fp->_r = fp->_ur) != 0) {
134 fp->_r = _sread(fp, (char *)fp->_p, fp->_bf._size);
136 if (fp->_r <= 0) {
137 if (fp->_r == 0)
140 fp->_r = 0;
H A Dfgets.c75 if ((len = fp->_r) <= 0) {
84 len = fp->_r;
99 fp->_r -= len;
106 fp->_r -= len;
H A Dfgetwc.c83 if (fp->_r <= 0 && __srefill(fp))
86 nconv = l->__mbrtowc(&wc, fp->_p, fp->_r, mbs);
94 fp->_r--;
99 fp->_r -= nconv;
H A Dfread.c96 if (fp->_r < 0)
97 fp->_r = 0;
100 while (resid > (r = fp->_r)) {
103 /* fp->_r = 0 ... done in __srefill */
112 fp->_r -= resid;
H A Dfgetln.c94 if (fp->_r <= 0 && __srefill(fp)) {
101 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) != NULL) {
113 fp->_r -= len;
129 for (len = fp->_r, off = 0;; len += fp->_r) {
147 if ((p = memchr((void *)fp->_p, '\n', (size_t)fp->_r)) == NULL)
158 fp->_r -= diff;
H A Dungetc.c136 if (fp->_r >= fp->_ub._size && __submore(fp))
139 fp->_r++;
152 fp->_r++;
160 fp->_ur = fp->_r;
166 fp->_r = 1;
H A Dfpurge.c63 fp->_r = 0;
H A Dgetdelim.c126 if (fp->_r <= 0 && __srefill(fp)) {
136 while ((endp = memchr(fp->_p, delim, fp->_r)) == NULL) {
137 if (sappend(linep, &linelen, linecapp, fp->_p, fp->_r))
148 fp->_r -= endp - fp->_p;
H A Dvfscanf.c135 if ((n = fp->_r) < width) {
146 fp->_r -= width;
190 n++, fp->_r--, fp->_p++;
193 if (fp->_r <= 0 && __srefill(fp)) {
202 fp->_r--;
206 if (fp->_r <= 0 && __srefill(fp)) {
260 n++, fp->_r--, fp->_p++;
263 if (fp->_r <= 0 && __srefill(fp))
269 fp->_r--;
273 if (fp->_r <
[all...]
H A Dfseek.c225 curoff += fp->_r; /* kill off ungetc */
232 n += fp->_r;
244 fp->_r = n - o;
264 fp->_r = 0;
270 if (__srefill(fp) || fp->_r < n)
273 fp->_r -= n;
296 fp->_r = 0;
H A Dvsscanf.c69 f._bf._size = f._r = strlen(str);
H A Dwsetup.c70 fp->_r = 0;
H A Dftell.c119 if ((pos -= (HASUB(fp) ? fp->_ur : fp->_r)) < 0) {
125 pos -= fp->_r; /* Can be negative at this point. */
H A Dvswscanf.c92 f._bf._size = f._r = mlen;
H A Dfclose.c68 fp->_r = fp->_w = 0; /* Mess up if reaccessed. */
H A Dsetvbuf.c77 fp->_r = fp->_lbfsize = 0;
H A Dstdio.c154 fp->_r = 0;
H A Dfindfp.c191 fp->_r = 0;
H A Dfreopen.c177 fp->_r = 0;
/barrelfish-2018-10-04/kernel/include/arch/x86/
H A Dx86.h49 #define ia32_msr_read_64(_d,_r) rdmsr(_r)
50 #define ia32_msr_write_64(_d,_r,_v) wrmsr(_r,_v)
51 #define ia32_msr_read_32(_d,_r) ((uint32_t)rdmsr(_r))
52 #define ia32_msr_write_32(_d,_r,_v) wrmsr(_r,_v)
/barrelfish-2018-10-04/kernel/arch/x86/
H A Drtc.c54 static inline uint8_t _rtc_read( lpc_rtc_t *rt, uint8_t _r) argument
56 lpc_rtc_ndx_wr(rt,_r);
/barrelfish-2018-10-04/usr/drivers/rtc/
H A Drtc.c61 static inline uint8_t _rtc_read( lpc_rtc_t *rtc, uint8_t _r) argument
63 lpc_rtc_ndx_wr(rtc,_r);
/barrelfish-2018-10-04/lib/libc/sys/barrelfish/
H A Dfindfp.c132 ptr->_r = 0;
225 fp->_r = 0;

Completed in 73 milliseconds

12