mmap, malloc errno fixed