Lines Matching +full:buffered +full:- +full:positive
1 /*-
2 * SPDX-License-Identifier: BSD-3-Clause
42 * or if c=='\n' and the file is line buffered.
44 * Non-MT-safe
53 * make sure _w is 0 (if fully- or un-buffered) or -_bf._size in __swbuf()
54 * (if line buffered) so that we will get called again. in __swbuf()
56 * calls might wrap _w from negative to positive. in __swbuf()
58 fp->_w = fp->_lbfsize; in __swbuf()
65 ORIENT(fp, -1); in __swbuf()
70 * completely, or if c is '\n' and the file is line buffered, in __swbuf()
76 n = fp->_p - fp->_bf._base; in __swbuf()
77 if (n >= fp->_bf._size) { in __swbuf()
82 fp->_w--; in __swbuf()
83 *fp->_p++ = c; in __swbuf()
84 if (++n == fp->_bf._size || (fp->_flags & __SLBF && c == '\n')) in __swbuf()