Exercises and examples from The Linux Programming Environment book