Home
last modified time | relevance | path

Searched refs:_ubuf (Results 1 – 2 of 2) sorted by relevance

/bionic/libc/upstream-openbsd/lib/libc/stdio/
Dungetc.c52 if (_UB(fp)._base == fp->_ubuf) { in __submore()
60 p += BUFSIZ - sizeof(fp->_ubuf); in __submore()
61 for (i = sizeof(fp->_ubuf); --i >= 0;) in __submore()
62 p[i] = fp->_ubuf[i]; in __submore()
138 _UB(fp)._base = fp->_ubuf; in ungetc()
139 _UB(fp)._size = sizeof(fp->_ubuf); in ungetc()
140 fp->_ubuf[sizeof(fp->_ubuf) - 1] = c; in ungetc()
141 fp->_p = &fp->_ubuf[sizeof(fp->_ubuf) - 1]; in ungetc()
/bionic/libc/stdio/
Dlocal.h92 unsigned char _ubuf[3]; /* guarantee an ungetc() buffer */ member
227 if (_UB(fp)._base != (fp)->_ubuf) free(_UB(fp)._base); \