Home
last modified time | relevance | path

Searched refs:COOKIE (Results 1 – 3 of 3) sorted by relevance

/l4re-core-master/uclibc/lib/contrib/uclibc/libc/stdio/
A Dopen_memstream.c41 count = COOKIE->len - COOKIE->pos - 1; in oms_write()
42 assert(COOKIE->pos < COOKIE->len); /* Always nul-terminate! */ in oms_write()
47 *COOKIE->bufloc = COOKIE->buf = newbuf; in oms_write()
58 memcpy(COOKIE->buf + COOKIE->pos, buf, bufsize); in oms_write()
61 if (COOKIE->pos > COOKIE->eof) { in oms_write()
62 *COOKIE->sizeloc = COOKIE->eof = COOKIE->pos; in oms_write()
63 COOKIE->buf[COOKIE->eof] = 0; /* Need to nul-terminate. */ in oms_write()
95 *COOKIE->bufloc = COOKIE->buf = buf; in oms_seek()
107 memset(COOKIE->buf + COOKIE->eof, 0, leastlen - COOKIE->eof); in oms_seek()
108 *COOKIE->sizeloc = COOKIE->eof; in oms_seek()
[all …]
A Dfmemopen.c31 size_t count = COOKIE->len - COOKIE->pos; in fmo_read()
42 memcpy(buf, COOKIE->buf + COOKIE->pos, bufsize); in fmo_read()
56 COOKIE->pos = COOKIE->eof; in fmo_write()
59 count = COOKIE->len - COOKIE->pos; in fmo_write()
69 memcpy(COOKIE->buf + COOKIE->pos, buf, bufsize); in fmo_write()
72 if (COOKIE->pos > COOKIE->eof) { in fmo_write()
73 COOKIE->eof = COOKIE->pos; in fmo_write()
75 *(COOKIE->buf + COOKIE->pos) = 0; in fmo_write()
92 p += (whence == SEEK_CUR) ? COOKIE->pos : /* SEEK_END */ COOKIE->eof; in fmo_seek()
109 free(COOKIE->buf); in fmo_close()
[all …]
A Dvsnprintf.c144 #define COOKIE ((__snpf_cookie *) cookie)
154 if (COOKIE->len > COOKIE->pos) {
155 count = COOKIE->len - COOKIE->pos - 1; /* Leave space for nul. */
160 p = COOKIE->buf + COOKIE->pos;
168 COOKIE->pos += bufsize;
173 #undef COOKIE

Completed in 5 milliseconds