Searched refs:_base (Results 1 - 25 of 53) sorted by relevance

123

/freebsd-current/lib/libc/stdio/
H A Dvasprintf.c51 f._bf._base = f._p = malloc(128);
52 if (f._bf._base == NULL) {
60 free(f._bf._base);
66 *str = (char *)f._bf._base;
H A Dlocal.h104 ((fp)->_bf._base == NULL && ((fp)->_flags & __SSTR) == 0)) && \
111 #define HASUB(fp) ((fp)->_ub._base != NULL)
113 if ((fp)->_ub._base != (fp)->_ubuf) \
114 free((char *)(fp)->_ub._base); \
115 (fp)->_ub._base = NULL; \
121 #define HASLB(fp) ((fp)->_lb._base != NULL)
123 free((char *)(fp)->_lb._base); \
124 (fp)->_lb._base = NULL; \
H A Dungetc.c57 if (fp->_ub._base == fp->_ubuf) {
63 fp->_ub._base = p;
72 p = reallocarray(fp->_ub._base, i, 2);
78 fp->_ub._base = p;
145 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base &&
158 fp->_ub._base = fp->_ubuf;
H A Dvswprintf.c68 f._bf._base = f._p = (unsigned char *)malloc(128);
69 if (f._bf._base == NULL) {
78 free(f._bf._base);
84 mbp = f._bf._base;
91 free(f._bf._base);
H A Dwsetup.c67 fp->_p = fp->_bf._base;
75 if (fp->_bf._base == NULL)
H A Dmakebuf.c62 fp->_bf._base = fp->_p = fp->_nbuf;
69 fp->_bf._base = fp->_p = fp->_nbuf;
75 fp->_bf._base = fp->_p = p;
H A Dfgetln.c59 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
61 fp->_lb._base = p;
126 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
143 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
150 ret = (char *)fp->_lb._base;
H A Dfvwrite.c105 size_t blen = fp->_p - fp->_bf._base;
113 fp->_bf._base =
114 reallocf(fp->_bf._base, fp->_bf._size + 1);
115 if (fp->_bf._base == NULL)
117 fp->_p = fp->_bf._base + blen;
129 } else if (fp->_p > fp->_bf._base && len > w) {
170 if (fp->_p > fp->_bf._base && s > w) {
H A Dsetvbuf.c77 free((void *)fp->_bf._base);
113 fp->_bf._base = fp->_p = fp->_nbuf;
136 fp->_bf._base = fp->_p = (unsigned char *)buf;
H A Dfpurge.c58 fp->_p = fp->_bf._base;
H A Dwbuf.c76 n = fp->_p - fp->_bf._base;
H A Dfgetwln.c68 *((wchar_t *)fp->_lb._base + len++) = wc;
81 ret = (wchar_t *)fp->_lb._base;
H A Dsnprintf.c68 f._bf._base = f._p = (unsigned char *)str;
96 f._bf._base = f._p = (unsigned char *)str;
H A Dvdprintf.c62 f._bf._base = buf;
H A Dvsscanf.c64 f._bf._base = f._p = (unsigned char *)str;
H A Dvsprintf.c56 f._bf._base = f._p = (unsigned char *)str;
H A Dfread.c105 fp->_bf._base = fp->_p = p;
118 fp->_bf._base = fp->_p = fp->_nbuf;
H A Drefill.c111 if (fp->_bf._base == NULL)
129 fp->_p = fp->_bf._base;
H A Dftell.c97 fp->_p != NULL && fp->_p - fp->_bf._base > 0 &&
123 (n = fp->_p - fp->_bf._base) > 0) {
H A Dfseek.c165 if (fp->_bf._base == NULL)
222 n = fp->_up - fp->_bf._base;
226 n = fp->_p - fp->_bf._base;
239 fp->_p = fp->_bf._base + o;
261 fp->_p = fp->_bf._base;
277 * do it. Allow the seek function to change fp->_bf._base.
291 fp->_p = fp->_bf._base;
H A Dfindfp.c145 fp->_bf._base = NULL; /* no buffer */
150 fp->_ub._base = NULL; /* no ungetc buffer */
152 fp->_lb._base = NULL; /* no line buffer */
H A Dvswscanf.c84 f._bf._base = f._p = (unsigned char *)mbstr;
H A Dfclose.c58 free((char *)fp->_bf._base);
H A Dfflush.c109 if ((p = fp->_bf._base) == NULL)
/freebsd-current/contrib/elftoolchain/libelf/
H A D_libelf_ar.h55 unsigned int _base, size_t *_ret);

Completed in 212 milliseconds

123