Source code from the 3rd edition of UNIX:The Textbook