Searched refs:_ub (Results 1 - 5 of 5) sorted by relevance

/freebsd-current/lib/libc/stdio/
H A Dungetc.c57 if (fp->_ub._base == fp->_ubuf) {
63 fp->_ub._base = p;
64 fp->_ub._size = BUFSIZ;
71 i = fp->_ub._size;
72 p = reallocarray(fp->_ub._base, i, 2);
78 fp->_ub._base = p;
79 fp->_ub._size = i * 2;
132 if (fp->_r >= fp->_ub._size && __submore(fp))
158 fp->_ub._base = fp->_ubuf;
159 fp->_ub
[all...]
H A Dlocal.h111 #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; \
H A Dfindfp.c150 fp->_ub._base = NULL; /* no ungetc buffer */
151 fp->_ub._size = 0;
H A Dfreopen.c180 fp->_ub._size = 0;
/freebsd-current/include/
H A Dstdio.h111 * _ub, _up, and _ur are used when ungetc() pushes back more characters
114 * _ub._base becomes non-nil (i.e., a stream has ungetc() data iff
115 * _ub._base!=NULL) and _up and _ur save the current values of _p and _r.
138 struct __sbuf _ub; /* ungetc buffer */ member in struct:__sFILE

Completed in 109 milliseconds