fmemopen_write
(flags & O_ACCMODE) == O_RDONLY ? NULL : fmemopen_write,
static int fmemopen_write(void *cookie, const char *buf, int nbytes);