Since NuttX conform to POSIX standard, the code need to add is very simple. Differential Revision: https://reviews.llvm.org/D88718