Merge "[MIPS] Fixed a bug and improved fcntl_portable."