Lines Matching refs:cookie
10 void *cookie;
22 struct fcookie *fc = f->cookie;
30 ret = fc->iofuncs.read(fc->cookie, (char *) buf, len2);
40 ret = fc->iofuncs.read(fc->cookie, (char *) f->rpos, f->buf_size);
56 struct fcookie *fc = f->cookie;
64 ret = fc->iofuncs.write(fc->cookie, (const char *) buf, len);
75 struct fcookie *fc = f->cookie;
85 res = fc->iofuncs.seek(fc->cookie, &off, whence);
93 struct fcookie *fc = f->cookie;
94 if (fc->iofuncs.close) return fc->iofuncs.close(fc->cookie);
98 FILE *fopencookie(void *cookie, const char *mode, cookie_io_functions_t iofuncs)
118 f->fc.cookie = cookie;
122 f->f.cookie = &f->fc;