Home | History | Annotate | Download | only in libcutils

Lines Matching defs:eof

32  *   The spec says the null byte is written when a write() advances EOF,
33 * but it looks like glibc ensures the null byte is always found at EOF,
69 size_t* sizep; /* pointer to eof */
72 size_t eof; /* furthest point we've written to */
82 * that we maintain just past EOF.
119 * If we previously seeked beyond EOF, zero-fill the gap.
130 /* seeked past EOF earlier? */
131 if (stream->eof < stream->offset) {
133 stream->eof, stream->offset-1));
134 memset(*stream->bufp + stream->eof, '\0',
135 stream->offset - stream->eof);
142 if (stream->offset > stream->eof) {
143 /* EOF has advanced, update it and append null byte */
144 DBUG(("+++ EOF advanced to %d, appending nul\n", stream->offset));
146 stream->eof = stream->offset;
172 newPosn += stream->eof;
182 if (stream->offset < stream->eof) {
194 if (stream->offset < stream->eof) {
197 * at EOF and stomp it with a NUL.
204 * We're positioned at, or possibly beyond, the EOF. We want to
205 * publish the current EOF, not the current position.
207 *stream->sizep = stream->eof;