Searched refs:COOKIE (Results 1 – 3 of 3) sorted by relevance
41 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 …]
31 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 …]
144 #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 4 milliseconds