stdio.h: add missing typedefs
I should sleep more and build more :D
This commit is contained in:
parent
e1f303c5ec
commit
12533060d0
@ -101,6 +101,10 @@ extern FILE *open_memstream(char **buf, size_t *size);
|
||||
|
||||
/* callback streams */
|
||||
#ifdef _GNU_SOURCE
|
||||
typedef ssize_t (*cookie_read_function_t)(void *cookie, char *buf, size_t size);
|
||||
typedef ssize_t (*cookie_write_function_t)(void *cookie, const char *buf, size_t size);
|
||||
typedef ssize_t (*cookie_seek_function_t)(void *cookie, off_t *offset, int whence);
|
||||
typedef ssize_t (*cookie_close_function_t)(void *cookie);
|
||||
typedef struct {
|
||||
cookie_read_function_t *read;
|
||||
cookie_write_function_t *write;
|
||||
|
Loading…
x
Reference in New Issue
Block a user