Searched refs:_p (Results 1 – 22 of 22) sorted by relevance
/bionic/libc/upstream-openbsd/lib/libc/stdio/ |
D | fgetln.c | 79 if ((p = memchr(fp->_p, '\n', fp->_r)) != NULL) { in fgetln() 86 ret = (char *)fp->_p; in fgetln() 87 *lenp = len = p - fp->_p; in fgetln() 90 fp->_p = p; in fgetln() 115 (void)memcpy(fp->_lb._base + off, fp->_p, len - off); in fgetln() 122 if ((p = memchr(fp->_p, '\n', fp->_r)) == NULL) in fgetln() 127 diff = p - fp->_p; in fgetln() 131 (void)memcpy(fp->_lb._base + off, fp->_p, diff); in fgetln() 133 fp->_p = p; in fgetln()
|
D | ungetc.c | 63 fp->_p = p; in __submore() 72 fp->_p = p + i; in __submore() 114 *--fp->_p = c; in ungetc() 126 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && in ungetc() 127 fp->_p[-1] == c) { in ungetc() 128 fp->_p--; in ungetc() 137 fp->_up = fp->_p; in ungetc() 141 fp->_p = &fp->_ubuf[sizeof(fp->_ubuf) - 1]; in ungetc()
|
D | getdelim.c | 76 p = memchr(fp->_p, sep, fp->_r); in getdelim() 80 len = (p - fp->_p) + 1; in getdelim() 113 (void)memcpy((*buf + off), fp->_p, len); in getdelim() 116 fp->_p += (int)len; in getdelim()
|
D | makebuf.c | 57 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf() 64 fp->_bf._base = fp->_p = fp->_nbuf; in __smakebuf() 69 fp->_bf._base = fp->_p = p; in __smakebuf()
|
D | wbuf.c | 72 n = fp->_p - fp->_bf._base; in __swbuf() 79 *fp->_p++ = c; in __swbuf()
|
D | vasprintf.c | 39 f._bf._base = f._p = malloc(INITIAL_SIZE); in vasprintf() 46 *f._p = '\0'; in vasprintf()
|
D | vswprintf.c | 58 f._bf._base = f._p = malloc(128); in vswprintf() 76 *f._p = '\0'; in vswprintf()
|
D | rget.c | 48 return (*fp->_p++); in __srget()
|
D | setvbuf.c | 109 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf() 139 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
|
D | fpurge.c | 56 fp->_p = fp->_bf._base; in fpurge()
|
D | vsscanf.c | 53 f._bf._base = f._p = (unsigned char *)str; in vsscanf()
|
D | wsetup.c | 62 fp->_p = fp->_bf._base; in __swsetup()
|
D | vdprintf.c | 60 f._p = buf; in vdprintf()
|
D | vswscanf.c | 80 f._bf._base = f._p = (unsigned char *)mbstr; in vswscanf()
|
/bionic/libc/stdio/ |
D | vfscanf.cpp | 115 while ((fp->_r > 0 || __srefill(fp) == 0) && isspace(*fp->_p)) nread++, fp->_r--, fp->_p++; in __svfscanf() 131 if (*fp->_p != c) goto match_failure; in __svfscanf() 132 fp->_r--, fp->_p++; in __svfscanf() 313 while (isspace(*fp->_p)) { in __svfscanf() 316 fp->_p++; in __svfscanf() 350 buf[bytes++] = *fp->_p; in __svfscanf() 351 fp->_p++; in __svfscanf() 385 fp->_p += n; in __svfscanf() 393 fp->_p += width; in __svfscanf() 434 while ((c == CT_CCL || !isspace(*fp->_p)) && width != 0) { in __svfscanf() [all …]
|
D | refill.c | 88 fp->_p = fp->_up; in __srefill() 112 fp->_p = fp->_bf._base; in __srefill() 113 fp->_r = (*fp->_read)(fp->_cookie, (char *)fp->_p, fp->_bf._size); in __srefill()
|
D | stdio.cpp | 188 fp->_p = nullptr; /* no current pointer */ in __sfp() 370 fp->_p = nullptr; in freopen() 506 int n = fp->_p - p; in __sflush() 507 fp->_p = p; in __sflush() 583 } else if (fp->_flags & __SWR && fp->_p != nullptr) { in __ftello64_unlocked() 587 result += fp->_p - fp->_bf._base; in __ftello64_unlocked() 624 fp->_p = fp->_bf._base; in __fseeko64() 790 unsigned char* p = fp->_p; in fgets_unlocked() 800 fp->_p = t; in fgets_unlocked() 806 fp->_p += len; in fgets_unlocked() [all …]
|
D | stdio_ext.cpp | 67 return fp->_p - fp->_bf._base; in __fpending()
|
D | local.h | 62 unsigned char* _p; /* current position in (some) buffer */ member 240 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
|
D | parsefloat.c | 61 c = *fp->_p; in parsefloat() 176 fp->_p++; in parsefloat()
|
D | printf_common.h | 101 fake._bf._base = fake._p = buf; in __sbprintf()
|
/bionic/libc/bionic/ |
D | wcstod.cpp | 62 f._bf._base = f._p = reinterpret_cast<unsigned char*>(ascii_str); in wcstod()
|