The code when i read the book Understanding Unix/Linux Programming