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

/seL4-refos-master/libs/libmuslc/src/stdio/
H A D__overflow.c7 if (f->wpos < f->wend && c != f->lbf) return *f->wpos++ = c;
H A Dfflush.c13 if (f->wpos > f->wbase) r |= fflush(f);
22 if (f->wpos > f->wbase) {
24 if (!f->wpos) {
34 f->wpos = f->wbase = f->wend = 0;
H A Dfseek.c9 if (f->wpos > f->wbase) {
11 if (!f->wpos) return -1;
15 f->wpos = f->wbase = f->wend = 0;
H A D__toread.c6 if (f->wpos > f->wbase) f->write(f, 0, 0);
7 f->wpos = f->wbase = f->wend = 0;
H A Dext.c47 return f->wend ? f->wpos - f->wbase : 0;
52 f->wpos = f->wbase = f->wend = 0;
H A Dftell.c8 (f->flags & F_APP) && f->wpos > f->wbase
13 return pos - (f->rend - f->rpos) + (f->wpos - f->wbase);
H A D__towrite.c14 f->wpos = f->wbase = f->buf;
H A D__stdio_write.c7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase },
18 f->wpos = f->wbase = f->buf;
22 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);
21 else f->wpos += l;
H A Dfwrite.c10 if (l > f->wend - f->wpos) return f->write(f, s, l);
23 memcpy(f->wpos, s, l);
24 f->wpos += l;
H A Dvswprintf.c18 if (s!=f->wbase && sw_write(f, f->wbase, f->wpos-f->wbase)==-1)
28 f->wpos = f->wbase = f->wend = 0;
33 f->wpos = f->wbase = f->buf;
H A D__stdio_exit.c12 if (f->wpos > f->wbase) f->write(f, 0, 0);
H A Dvsnprintf.c17 size_t k = MIN(c->n, f->wpos - f->wbase);
30 f->wpos = f->wbase = f->buf;
H A Dfmemopen.c50 size_t len2 = f->wpos - f->wbase;
52 f->wpos = f->wbase;
53 if (mwrite(f, f->wpos, len2) < len2) return 0;
H A Dopen_memstream.c32 size_t len2 = f->wpos - f->wbase;
35 f->wpos = f->wbase;
H A Dvfprintf.c703 f->wpos = f->wbase = f->buf = internal_buf;
710 if (!f->wpos) ret = -1;
713 f->wpos = f->wbase = f->wend = 0;
/seL4-refos-master/libs/libmuslc/src/internal/
H A Dstdio_impl.h26 unsigned char *wend, *wpos; member in struct:_IO_FILE
90 ( ((unsigned char)(c)!=(f)->lbf && (f)->wpos<(f)->wend) \
91 ? *(f)->wpos++ = (c) : __overflow((f),(c)) )

Completed in 42 milliseconds