Add support for creat syscall.