fix some fmemopen behaviors
[musl] / src / internal / syscall.c