17. Lions' Commentary on Unix
Lions' Commentary on Unix

John Lions was teaching operating systems at the University of New South Wales in Australia.
What's the best way to
teach operating systems?
They need to study the Unix source.
But it's tough going.
I'll write my
own textbook.
In May 1976, Lions prepared lecture notes explaining the kernel source code of AT&T's Unix Version 6. These became his Unix commentary.
To understand an OS,
we need to read
the actual code.
I've written a guide
to the Unix kernel.
We'll use it as
our textbook.
By 1977, the notes were circulating among other schools and research institutions with Unix licenses [1][4]. Even Bell Labs wanted copies and eventually took over distribution [2].

Early on, Unix source could be studied in class. But at USENIX in June 1979, AT&T announced new Version 7 license terms restricting courses that disclosed or discussed source code. Distribution of Lions' book was tightly controlled as well [5][6].
I am altering the license.
Pray I don't alter it
any further.
Destroy Lions' book.
No more teaching
Unix source code.
There is no escape
from our operating system.

He's teaching from the Unix source code!
Seize the books!
Run!
He's got the book!
Don't let him
escape!
Quick! Take
the book!


Ugh!
I find your interest
in source code disturbing.
Just use the system calls.
Learn a little theory.
Leave the internals to us.
Theory isn't enough.
I need to see the code.
This code is our only hope
of understanding an OS.
For roughly twenty years before the official edition appeared, computer-science students studied from unauthorized photocopies. The book helped a generation of students learn to build operating systems of their own [5][8].

Meanwhile, members of the Unix community, including Peter H. Salus, Dennis Ritchie and Berny Goodheart, kept asking AT&T, Novell and the Santa Cruz Operation for permission to publish the book. SCO finally agreed. Peer-to-Peer Communications published the official edition in 1996 [5][7].
Lions' book is finally
in print. It even has
my foreword.
People were secretly copying it
for twenty years?
Unbelievable.

You can read a reconstructed version of the commentary as a PDF, or order a print copy on Amazon. The Unix Version 6 source code is available separately from TUHS.
References
- Lions' Commentary on UNIX 6th Edition, with Source Code
- John Lions, Lions' Commentary on UNIX 6th Edition, with Source Code, Peer-to-Peer Communications, 1996 (ISBN 1-57398-013-7).
- System call
- UNIX News, Vol. 2 No. 3, March 1977 - John Lions's March 11, 1977 letter and the announcement of book distribution to Unix licensees.
- Rachel Chalmers, "Code critic", Salon, November 30, 1999 - recollections from students and Dennis Ritchie, distribution restrictions, and the path to publication.
- Peter H. Salus, The Daemon, the GNU and the Penguin, Chapter 6: "1979", 2005 - the Version 7 license terms announced at USENIX in June 1979 and restrictions on classroom use.
- Dennis Ritchie's October 22, 1995 letter and Peter H. Salus's July 12, 1996 letter - publication-permission correspondence preserved by Warren Toomey.
- MIT, "Xv6, a simple Unix-like teaching operating system", "History and Background" - teaching with Lions's commentary and the background to xv6.