Home
last modified time | relevance | path

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

/freebsd/lib/libc/stdio/
H A Dungetc.c57 if (fp->_ub._base == fp->_ubuf) { in __submore()
63 fp->_ub._base = p; in __submore()
64 fp->_ub._size = BUFSIZ; in __submore()
71 i = fp->_ub._size; in __submore()
72 p = reallocarray(fp->_ub._base, i, 2); in __submore()
78 fp->_ub._base = p; in __submore()
79 fp->_ub._size = i * 2; in __submore()
132 if (fp->_r >= fp->_ub._size && __submore(fp)) in __ungetc()
158 fp->_ub._base = fp->_ubuf; in __ungetc()
159 fp->_ub._size = sizeof(fp->_ubuf); in __ungetc()
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 */ in __sfp()
151 fp->_ub._size = 0; in __sfp()
H A Dfreopen.c180 fp->_ub._size = 0; in freopen()
/freebsd/include/
H A Dstdio.h141 struct __sbuf _ub; /* ungetc buffer */ member