Code about learning how to use POSIX APIs