10 #if (! defined (__off64_t) && ! defined (__off64_t_defined)) || ! defined (__cplusplus)
11 #define off64_t unsigned long long
16 ssize_t (*read) (void *, char *, size_t);
17 ssize_t (*write) (void *, char const *, size_t);
18 int (*seek) (void *, off64_t *, int);
19 int (*close) (void *);
20 } lily_cookie_io_functions_t;
22 void *lily_fopencookie (void *cookie, char const *modes,
23 lily_cookie_io_functions_t io_funcs);
25 int lily_cookie_fclose (void *);
26 int lily_cookie_fprintf (void *file, char const *format, ...)
27 __attribute__ ((format (printf, 2, 3)));
28 int lily_cookie_putc (int c, void *file);