source code of advanced-linux-programming chapter 9 and 10