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

12

/freebsd-9.3-release/lib/libc/stdio/
H A Dvasprintf.c52 f._bf._base = f._p = malloc(128);
53 if (f._bf._base == NULL) {
61 free(f._bf._base);
67 *str = (char *)f._bf._base;
H A Dlocal.h95 ((fp)->_bf._base == NULL && ((fp)->_flags & __SSTR) == 0)) && \
102 #define HASUB(fp) ((fp)->_ub._base != NULL)
104 if ((fp)->_ub._base != (fp)->_ubuf) \
105 free((char *)(fp)->_ub._base); \
106 (fp)->_ub._base = NULL; \
112 #define HASLB(fp) ((fp)->_lb._base != NULL)
114 free((char *)(fp)->_lb._base); \
115 (fp)->_lb._base = NULL; \
H A Dungetc.c61 if (fp->_ub._base == fp->_ubuf) {
67 fp->_ub._base = p;
76 p = realloc(fp->_ub._base, (size_t)(i << 1));
82 fp->_ub._base = p;
149 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base &&
162 fp->_ub._base = fp->_ubuf;
H A Dvswprintf.c66 f._bf._base = f._p = (unsigned char *)malloc(128);
67 if (f._bf._base == NULL) {
76 free(f._bf._base);
82 mbp = f._bf._base;
89 free(f._bf._base);
H A Dfgetln.c64 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
66 fp->_lb._base = p;
133 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
147 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
155 fp->_lb._base[len] = 0;
158 return ((char *)fp->_lb._base);
H A Dfgetwln.c59 *((wchar_t *)fp->_lb._base + len++) = wc;
68 return ((wchar_t *)fp->_lb._base);
H A Dwsetup.c72 fp->_p = fp->_bf._base;
80 if (fp->_bf._base == NULL)
H A Dfvwrite.c111 size_t blen = fp->_p - fp->_bf._base;
119 fp->_bf._base =
120 reallocf(fp->_bf._base, fp->_bf._size + 1);
121 if (fp->_bf._base == NULL)
123 fp->_p = fp->_bf._base + blen;
135 } else if (fp->_p > fp->_bf._base && len > w) {
176 if (fp->_p > fp->_bf._base && s > w) {
H A Dmakebuf.c67 fp->_bf._base = fp->_p = fp->_nbuf;
74 fp->_bf._base = fp->_p = fp->_nbuf;
80 fp->_bf._base = fp->_p = p;
H A Dsetvbuf.c80 free((void *)fp->_bf._base);
116 fp->_bf._base = fp->_p = fp->_nbuf;
140 fp->_bf._base = fp->_p = (unsigned char *)buf;
H A Dfpurge.c63 fp->_p = fp->_bf._base;
H A Dsnprintf.c66 f._bf._base = f._p = (unsigned char *)str;
91 f._bf._base = f._p = (unsigned char *)str;
H A Dfclose.c62 free((char *)fp->_bf._base);
H A Dvdprintf.c63 f._bf._base = buf;
H A Dvsprintf.c58 f._bf._base = f._p = (unsigned char *)str;
H A Dvsscanf.c68 f._bf._base = f._p = (unsigned char *)str;
H A Dwbuf.c79 n = fp->_p - fp->_bf._base;
H A Drefill.c115 if (fp->_bf._base == NULL)
133 fp->_p = fp->_bf._base;
H A Dfseek.c179 if (fp->_bf._base == NULL)
236 n = fp->_up - fp->_bf._base;
240 n = fp->_p - fp->_bf._base;
253 fp->_p = fp->_bf._base + o;
275 fp->_p = fp->_bf._base;
291 * do it. Allow the seek function to change fp->_bf._base.
305 fp->_p = fp->_bf._base;
H A Dfindfp.c147 fp->_bf._base = NULL; /* no buffer */
152 fp->_ub._base = NULL; /* no ungetc buffer */
154 fp->_lb._base = NULL; /* no line buffer */
H A Dfflush.c110 if ((p = fp->_bf._base) == NULL)
H A Dftell.c130 n = fp->_p - fp->_bf._base;
H A Dvsnprintf.c72 f._bf._base = f._p = (unsigned char *)str;
H A Dvswscanf.c91 f._bf._base = f._p = (unsigned char *)mbstr;
H A Dfreopen.c160 * keep fp->_base: it may be the wrong size. This loses the effect
168 free((char *)fp->_bf._base);
172 fp->_bf._base = NULL;

Completed in 135 milliseconds

12