Searched refs:wpos (Results 1 - 17 of 17) sorted by relevance

/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A D__overflow.c7 if (f->wpos < f->wend && c != f->lbf)
8 return *f->wpos++ = c;
H A Dfflush.c5 if (f->wpos > f->wbase) {
7 if (!f->wpos)
16 f->wpos = f->wbase = f->wend = 0;
36 if (f->wpos > f->wbase)
H A D__toread.c5 if (f->wpos > f->wbase)
7 f->wpos = f->wbase = f->wend = 0;
H A Dvsnprintf.c8 size_t k = f->wend - f->wpos;
11 memcpy(f->wpos, s, k);
12 f->wpos += k;
35 f.buf = f.wpos = (void*)s;
41 f.wpos[-(f.wpos == f.wend)] = 0;
H A Dfseek.c9 if (f->wpos > f->wbase) {
11 if (!f->wpos)
16 f->wpos = f->wbase = f->wend = 0;
H A D__towrite.c13 f->wpos = f->wbase = f->buf;
H A Dftell.c6 off_t pos = f->seek(f, 0, (f->flags & F_APP) && f->wpos > f->wbase ? SEEK_END : SEEK_CUR);
11 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
H A D__stdio_exit.c7 if (f->wpos > f->wbase)
H A D__stdio_write.c6 struct iovec iovs[2] = {{.iov_base = f->wbase, .iov_len = f->wpos - f->wbase},
16 f->wpos = f->wbase = f->buf;
20 f->wpos = f->wbase = f->wend = 0;
H A Dfputwc.c18 } else if (f->wpos + MB_LEN_MAX < f->wend) {
19 l = wctomb((void*)f->wpos, c);
23 f->wpos += l;
H A Dfwrite.c10 if (l > f->wend - f->wpos)
26 memcpy(f->wpos, s, l);
27 f->wpos += l;
H A Dfmemopen.c50 size_t len2 = f->wpos - f->wbase;
52 f->wpos = f->wbase;
53 if (mwrite(f, f->wpos, len2) < len2)
H A Dopen_memstream.c31 size_t len2 = f->wpos - f->wbase;
34 f->wpos = f->wbase;
H A Dvswprintf.c17 if (s != f->wbase && sw_write(f, f->wbase, f->wpos - f->wbase) == -1)
H A Dvfprintf.c832 f->wpos = f->wbase = f->buf = internal_buf;
839 if (!f->wpos)
843 f->wpos = f->wbase = f->wend = 0;
/fuchsia/zircon/third_party/ulib/musl/src/internal/
H A Dstdio_impl.h27 unsigned char *wend, *wpos; member in struct:_IO_FILE
96 (((unsigned char)(c) != (f)->lbf && (f)->wpos < (f)->wend) ? *(f)->wpos++ = (c) \
/fuchsia/zircon/third_party/ulib/musl/ldso/
H A Ddynlink.c2562 if (f != NULL && f->wpos > f->wbase) {
2563 _dl_log_write((const char*)f->wbase, f->wpos - f->wbase);
2572 f->wpos = f->wbase = f->buf;

Completed in 99 milliseconds