update the open_memstream framework
  - see sys_read() in io.c to know my design