Example codes of "advanced programming in the UNIX envrionment", rewriting by myself for exercise.