Lions' Commentary on UNIX 6th Edition, with Source Code
|This article needs additional citations for verification. (November 2008)|
|Country||Original – Australia, Reprint – United States|
|Language||English Also available in Chinese and Japanese|
|Subject||Unix operating system|
|LC Class||QA 76.76 .O63 L56|
Lions' Commentary on UNIX 6th Edition, with Source Code by John Lions (1976) contains the complete source code of the 6th Edition Unix kernel plus a commentary. It is commonly referred to as the Lions book. Despite its age, it is still considered an excellent commentary on simple but high quality code.
For many years, the Lions Book was the only Unix kernel documentation available outside Bell Labs. Although the license of 6th Edition allowed classroom use of the source code, the license of 7th Edition specifically excluded such use, so the book spread through illegal copy machine reproductions (a kind of samizdat). It was commonly held to be the most copied book in computer science.
The book was reprinted in 1996 by Peer-To-Peer Communications.
Unix Operating System Source Code Level Six is the kernel source code, lightly edited by Lions to better separate the functionality — system initialization and process management, interrupts and system calls, basic I/O, file systems and pipes and character devices. All procedures and symbols are listed alphabetically with a cross reference.
A Commentary on the Unix Operating System starts with notes on Unix and other useful documentation (the Unix manual pages, DEC hardware manuals and so on), a section on the architecture of the PDP-11 and a chapter on how to read C programs. The source commentary follows, divided into the same sections as the code. The book ends with suggested exercises for the student.
As Lions explains, this commentary supplements the comments in the source. It is possible to understand the code without the extra commentary, and the reader is advised to do so and only read the notes as needed. The commentary also remarks on how the code might be improved.
The source code and commentary were originally produced in May 1976 as a set of lecture notes for Lions' computer science courses (6.602B and 6.657G) at the University of New South Wales Department of Computer Science.
UNIX News March 1977 announced the availability of the book to Unix licensees. Lions had trouble keeping up with its popularity, and by 1978 it was available only from Bell Labs.
When AT&T announced Unix Version 7 at USENIX in June 1979, the academic/research license no longer automatically permitted classroom use. Thus, licensees were no longer able to use the Lions notes for classes on operating systems.
However, thousands of computer science students around the world spread photocopies. As they could not study it legally in class, they would sometimes meet after hours to discuss the book. Many pioneers of Unix and open source had a treasured multiple-generation photocopy.
When AT&T released Version 7, it began to realize that UNIX was a valuable commercial product, so it issued Version 7 with a license that prohibited the source code from being studied in courses, in order to avoid endangering its status as a trade secret. Many universities complied by simply dropping the study of UNIX, and teaching only theory.
Various Unix people, particularly Peter H. Salus, Dennis Ritchie and Berny Goodheart, lobbied Unix's various owners (AT&T, Novell, the Santa Cruz Operation) for many years to allow the book to be published officially. In 1996, the Santa Cruz Operation finally authorised the release of the twenty-year-old 6th Edition source code (along with the source code of other versions of "Ancient UNIX"), and the full code plus the 1977 version of the commentary was published by Peer-To-Peer Communications (ISBN 1-57398-013-7). The reissue includes commentary from Michael Tilson (SCO), Peter Salus, Dennis Ritchie, Ken Thompson, Peter Collinson, Greg Rose, Mike O'Dell, Berny Goodheart and Peter Reintjes.
John Lions Chair in Computer Science
After his death, John O'Brien, Steve Jenkin, Chris Maltby and Greg Rose, former students of Lions, commenced a campaign to raise funds to create a chair in his name at UNSW, the John Lions Chair in Computer Science in the School of Computer Science and Engineering. With donations from many UNSW alumni, corporations, Usenix, Linux Australia, the chair was created in 2006, becoming the first chair at UNSW funded by contributions from alumni. In 2009, Gernot Heiser became the inaugural John Lions Chair.
John Lions Garden
- Andrew S. Tanenbaum, Operating Systems: Design and Implementation, (Prentice-Hall, ISBN 0-13-637331-3, June 1987)
- Code Critic (Rachel Chalmers, Salon 30 November 1999)
- Peter H. Salus, The Daemon, The GNU and the Penguin, ch. 6: 1979 (preprint, 2005)
- Brian W. Kernighan and Dennis Ritchie, The C Programming Language, ISBN 0-13-110362-8
- Peer-To-Peer Communications website, product page
- UNSW School of Computer Science & Engineering
- Complete commentary in PDF, PostScript, and LaTeX formats
- Complete source code listing available (6th Edition Unix source code as modified by John Lions) in PDF and HTML formats.
- Ersatz 11 (commercial), SIMH (free), and other PDP-11 hardware emulators