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

12

/vbox/src/VBox/Devices/EFI/Firmware/StdLib/LibC/Stdio/
H A Dvasprintf.c51 unsigned char *_base; local
59 f._bf._base = f._p = (unsigned char *)malloc(128);
60 if (f._bf._base == NULL)
67 _base = realloc(f._bf._base, (size_t)(ret + 1));
68 if (_base == NULL)
70 *str = (char *)_base;
74 if (f._bf._base)
75 free(f._bf._base);
H A Dlocal.h90 ((((fp)->_flags & __SWR) == 0 || (fp)->_bf._base == NULL) && __swsetup(fp))
96 #define HASUB(fp) (_UB(fp)._base != NULL)
98 if (_UB(fp)._base != (fp)->_ubuf) \
99 free((char *)_UB(fp)._base); \
100 _UB(fp)._base = NULL; \
106 #define HASLB(fp) ((fp)->_lb._base != NULL)
108 free((char *)(fp)->_lb._base); \
109 (fp)->_lb._base = NULL; \
H A Dvswprintf.c61 f._bf._base = f._p = (unsigned char *)malloc(128);
62 if (f._bf._base == NULL) {
70 free(f._bf._base);
75 mbp = (char *)f._bf._base;
82 free(f._bf._base);
H A Dsscanf.c80 f._bf._base = f._p = __UNCONST(str);
83 _UB(&f)._base = NULL;
84 f._lb._base = NULL;
H A Dvsscanf.c77 f._bf._base = f._p = __UNCONST(str);
80 _UB(&f)._base = NULL;
81 f._lb._base = NULL;
H A Dungetc.c75 if (_UB(fp)._base == fp->_ubuf) {
81 _UB(fp)._base = p;
90 p = realloc(_UB(fp)._base, (size_t)(i << 1));
96 _UB(fp)._base = p;
159 if (fp->_bf._base != NULL && fp->_p > fp->_bf._base &&
173 _UB(fp)._base = fp->_ubuf;
H A Dfvwrite.c130 size_t blen = fp->_p - fp->_bf._base;
131 unsigned char *_base; local
139 _base = realloc(fp->_bf._base,
141 if (_base == NULL)
144 fp->_bf._base = _base;
146 fp->_p = _base + blen;
156 } else if (fp->_p > fp->_bf._base && len > (size_t)w) {
197 if (fp->_p > fp->_bf._base
[all...]
H A Dfgetstr.c83 if ((p = realloc(fp->_lb._base, newsize)) == NULL)
85 fp->_lb._base = p;
155 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
169 (void)memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
177 fp->_lb._base[len] = 0;
179 return ((char *)fp->_lb._base);
H A Dwsetup.c85 fp->_p = fp->_bf._base;
93 if (fp->_bf._base == NULL)
H A Dfileext.h47 #define _EXT(fp) ((struct __sfileext *)(void *)((fp)->_ext._base))
57 /* LINTED */(f)->_ext._base = (unsigned char *)(fext); \
65 #define _FILEEXT_SETUP(f, fext) /* LINTED */(f)->_ext._base = (unsigned char *)(fext)
H A Dvswscanf.c91 f._bf._base = f._p = (unsigned char *)mbstr;
94 _UB(&f)._base = NULL;
95 f._lb._base = NULL;
H A Dmakebuf.c79 fp->_bf._base = fp->_p = fp->_nbuf;
86 fp->_bf._base = fp->_p = fp->_nbuf;
92 fp->_bf._base = fp->_p = p;
H A Dsetvbuf.c99 free((void *)fp->_bf._base);
135 fp->_bf._base = fp->_p = fp->_nbuf;
159 fp->_bf._base = fp->_p = (unsigned char *)buf;
H A Dvsprintf.c68 f._bf._base = f._p = (unsigned char *)str;
H A Dsnprintf.c83 f._bf._base = f._p = dummy;
86 f._bf._base = f._p = (unsigned char *)str;
H A Dvsnprintf.c76 f._bf._base = f._p = dummy;
79 f._bf._base = f._p = (unsigned char *)str;
H A Dfseeko.c136 curoff += fp->_p - fp->_bf._base;
164 if (fp->_bf._base == NULL)
218 n = fp->_up - fp->_bf._base;
222 n = fp->_p - fp->_bf._base;
237 fp->_p = fp->_bf._base + o;
262 fp->_p = fp->_bf._base;
282 * do it. Allow the seek function to change fp->_bf._base.
296 fp->_p = fp->_bf._base;
H A Dfclose.c77 free((char *)fp->_bf._base);
H A Dfpurge.c78 fp->_p = fp->_bf._base;
H A Dftell.c99 pos += fp->_p - fp->_bf._base;
H A Dftello.c96 pos += fp->_p - fp->_bf._base;
H A Dsprintf.c71 f._bf._base = f._p = (unsigned char *)str;
H A Dwbuf.c94 n = (int)(fp->_p - fp->_bf._base);
H A Drefill.c143 if (fp->_bf._base == NULL)
158 fp->_p = fp->_bf._base;
H A Dfindfp.c154 fp->_bf._base = NULL; /* no buffer */
159 _UB(fp)._base = NULL; /* no ungetc buffer */
161 fp->_lb._base = NULL; /* no line buffer */

Completed in 1849 milliseconds

12