Home
last modified time | relevance | path

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

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dfgetln.c79 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()
Dungetc.c63 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()
Dgetdelim.c76 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()
Dmakebuf.c57 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()
Dwbuf.c72 n = fp->_p - fp->_bf._base; in __swbuf()
79 *fp->_p++ = c; in __swbuf()
Dvasprintf.c39 f._bf._base = f._p = malloc(INITIAL_SIZE); in vasprintf()
46 *f._p = '\0'; in vasprintf()
Dvswprintf.c58 f._bf._base = f._p = malloc(128); in vswprintf()
76 *f._p = '\0'; in vswprintf()
Drget.c48 return (*fp->_p++); in __srget()
Dsetvbuf.c109 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf()
139 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
Dfpurge.c56 fp->_p = fp->_bf._base; in fpurge()
Dvsscanf.c53 f._bf._base = f._p = (unsigned char *)str; in vsscanf()
Dwsetup.c62 fp->_p = fp->_bf._base; in __swsetup()
Dvdprintf.c60 f._p = buf; in vdprintf()
Dvswscanf.c80 f._bf._base = f._p = (unsigned char *)mbstr; in vswscanf()
/bionic/libc/stdio/
Dvfscanf.cpp115 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 …]
Drefill.c88 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()
Dstdio.cpp188 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 …]
Dstdio_ext.cpp67 return fp->_p - fp->_bf._base; in __fpending()
Dlocal.h62 unsigned char* _p; /* current position in (some) buffer */ member
240 #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++))
Dparsefloat.c61 c = *fp->_p; in parsefloat()
176 fp->_p++; in parsefloat()
Dprintf_common.h101 fake._bf._base = fake._p = buf; in __sbprintf()
/bionic/libc/bionic/
Dwcstod.cpp62 f._bf._base = f._p = reinterpret_cast<unsigned char*>(ascii_str); in wcstod()