Home
last modified time | relevance | path

Searched refs:_base (Results 1 – 20 of 20) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dvasprintf.c39 f._bf._base = f._p = malloc(INITIAL_SIZE); in vasprintf()
40 if (f._bf._base == NULL) in vasprintf()
49 unsigned char *_base = recallocarray(f._bf._base, in vasprintf() local
52 if (_base == NULL) in vasprintf()
54 *str = (char *)_base; in vasprintf()
56 *str = (char *)f._bf._base; in vasprintf()
60 free(f._bf._base); in vasprintf()
61 f._bf._base = NULL; in vasprintf()
Dfvwrite.c108 size_t blen = fp->_p - fp->_bf._base; in __sfvwrite()
110 unsigned char *_base; in __sfvwrite() local
115 _base = recallocarray(fp->_bf._base, in __sfvwrite()
117 if (_base == NULL) in __sfvwrite()
120 fp->_bf._base = _base; in __sfvwrite()
122 fp->_p = _base + blen; in __sfvwrite()
132 } else if (fp->_p > fp->_bf._base && len > w) { in __sfvwrite()
173 if (fp->_p > fp->_bf._base && s > w) { in __sfvwrite()
Dvswprintf.c58 f._bf._base = f._p = malloc(128); in vswprintf()
59 if (f._bf._base == NULL) { in vswprintf()
67 free(f._bf._base); in vswprintf()
73 free(f._bf._base); in vswprintf()
77 mbp = (char *)f._bf._base; in vswprintf()
84 free(f._bf._base); in vswprintf()
Dungetc.c52 if (_UB(fp)._base == fp->_ubuf) { in __submore()
58 _UB(fp)._base = p; in __submore()
67 p = reallocarray(_UB(fp)._base, i, 2); in __submore()
73 _UB(fp)._base = p; in __submore()
126 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base && in ungetc()
138 _UB(fp)._base = fp->_ubuf; in ungetc()
Dfgetln.c49 if ((p = recallocarray(fp->_lb._base, fp->_lb._size, newsize, 1)) == NULL) in __slbexpand()
51 fp->_lb._base = p; in __slbexpand()
115 (void)memcpy(fp->_lb._base + off, fp->_p, len - off); in fgetln()
131 (void)memcpy(fp->_lb._base + off, fp->_p, diff); in fgetln()
137 ret = (char *)fp->_lb._base; in fgetln()
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()
Dsetvbuf.c73 free(fp->_bf._base); in setvbuf()
109 fp->_bf._base = fp->_p = fp->_nbuf; in setvbuf()
139 fp->_bf._base = fp->_p = (unsigned char *)buf; in setvbuf()
Dvsscanf.c53 f._bf._base = f._p = (unsigned char *)str; in vsscanf()
56 f._lb._base = NULL; in vsscanf()
Dwsetup.c62 fp->_p = fp->_bf._base; in __swsetup()
70 if (fp->_bf._base == NULL) { in __swsetup()
Dvswscanf.c80 f._bf._base = f._p = (unsigned char *)mbstr; in vswscanf()
83 f._lb._base = NULL; in vswscanf()
Dfpurge.c56 fp->_p = fp->_bf._base; in fpurge()
Dwbuf.c72 n = fp->_p - fp->_bf._base; in __swbuf()
Dvdprintf.c64 f._bf._base = buf; in vdprintf()
/bionic/libc/stdio/
Dlocal.h53 unsigned char* _base; member
170 #define _EXT(fp) __BIONIC_CAST(reinterpret_cast, struct __sfileext*, (fp)->_ext._base)
177 (fp)->_ext._base = __BIONIC_CAST(reinterpret_cast, unsigned char*, fext); \
219 #define cantwrite(fp) ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))
225 #define HASUB(fp) (_UB(fp)._base != NULL)
228 if (_UB(fp)._base != (fp)->_ubuf) free(_UB(fp)._base); \
229 _UB(fp)._base = NULL; \
Dstdio.cpp76 ._base = reinterpret_cast<uint8_t*>(__sFext + fd) \
157 if (__predict_false(fp->_lb._base != nullptr)) { in free_fgetln_buffer()
158 free(fp->_lb._base); in free_fgetln_buffer()
159 fp->_lb._base = nullptr; in free_fgetln_buffer()
191 fp->_bf._base = nullptr; /* no buffer */ in __sfp()
196 fp->_lb._base = nullptr; /* no line buffer */ in __sfp()
357 if (fp->_flags & __SMBF) free(fp->_bf._base); in freopen()
361 fp->_bf._base = nullptr; in freopen()
421 if (fp->_flags & __SMBF) free(fp->_bf._base); in __FILE_close()
503 unsigned char* p = fp->_bf._base; in __sflush()
[all …]
Drefill.c94 if (fp->_bf._base == NULL) in __srefill()
112 fp->_p = fp->_bf._base; in __srefill()
Dstdio_ext.cpp67 return fp->_p - fp->_bf._base; in __fpending()
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()
65 f._lb._base = nullptr; in wcstod()
/bionic/docs/
Delf-tls.md445 * x86_64: use `PTRACE_PEEKUSER` to read the `{fs,gs}_base` fields of `user_regs_struct`