q2K BHP
Black History Portal
THE BHP WIRE —
HIDDEN TRUTHS
What's New!
THE JOURNEY THROUGH TIME

Explore Black History

Explore the people, places, events, achievements, struggles and stories that shaped our journey.

✊🏾

Civil Rights

Movements, leaders, victories and the continuing fight for equality.

⚙️

Black Inventors

Innovation, patents, science, technology and world-changing contributions.

🏆

Sports

Pioneers, champions, Negro Leagues, records, activism and excellence.

♟️

People

Meet the people whose lives, choices and achievements shaped the journey.

📍

Places

Black towns, communities, institutions and places where history happened.

📜

Events

Moments that changed communities, movements, institutions and the nation.

Enter a person, place, event, or topic.
MY'STORY

The MOVE Fire

This is a personal recollection on the Move fire on May 13, 1985 Philadelphia police fired thousands of rounds at the MOVE house, city officials approved dropping an explosive device on the roof, the resulting fire was allowed to burn, 11 people—including five children—died, and 61 homes were destroyed. Philadelphia City Council later called it a “brutal attack carried out by the City of Philadelphia on its own citizens” and acknowledged that no individual faced criminal consequences for the bombing. One timeline correction worth preserving for the BHP record: the major previous MOVE-police confrontation was August 8, 1978, about seven years before the bombing, not a year or two earlier. Officer James Ramp was killed, other police and firefighters were wounded, nine MOVE members were later convicted, and television cameras recorded police beating Delbert Africa during his arrest. The 1985 MOVE Commission later specifically criticized city planners for failing to adequately use lessons from that 1978 confrontation. And that actually strengthens the point you’re making: 1985 did not happen without precedent or institutional memory. There had already been a deadly confrontation with MOVE, years of conflict, negotiations and police involvement before Osage Avenue.

MORE →
BLACK FACTS
The Truths They Never Taught You...

Katherine Johnson — Mathematics to the Moon

Katherine Johnson’s mathematical calculations helped guide some of America’s most important early space missions while she confronted the racial and gender barriers faced by Black women in twentieth-century America.

MORE →
BHP gathered finds from its connected research sources. Showing the 4 strongest Black History matches.
← BACK TO RESULTS
Wikipedia

A Commentary on the UNIX Operating System

A commentary on the Unix operating system
AuthorJohn Lions
LanguageEnglish; also available in Chinese and Japanese
SubjectUnix operating system
GenreComputer Science
PublisherUniversity of New South Wales
Publication date1976
Publication place
  • Australia (original)
  • United States (1996 reprint)
OCLC36099640
Dewey Decimal005.43
LC ClassQA 76.76 .O63 L56

A Commentary on the Sixth Edition UNIX Operating System by John Lions (later reissued as Lions' Commentary on UNIX 6th Edition[1][2] and commonly referred to as the Lions Book) is a highly influential[3] 1976 publication containing analytical commentary on the source code of the 6th Edition Unix computer operating system "resident nucleus"[4] (i.e., kernel) software, plus copy formatted and indexed by Lions, of said source code obtained from the authors at AT&T Bell Labs.

Itself an exemplar of the early success of UNIX as portable code for a publishing platform, Lions's work was typeset using UNIX tools, on systems running code ported at the University, similar to that which it documented.[5]

It is suspected to be the most frequently photocopied book in computer science.[6]: xi  Despite its age, Lions's book is still considered an excellent commentary on simple, high quality code.

Lions's work was most recently reprinted in 1996 by Peer-To-Peer Communications,[6] and has been circulated, recreated or reconstructed variously in a number of media by other parties.[5]

History

[edit]
John Lions with his students in 1980
A Japanese reprinting of A Commentary on the UNIX Operating System, and accompanying formatted source code, with accompanying license

The source code and commentary were printed in book form in 1977, after first being assembled in May 1976, as a set of lecture notes[4] for Lions's computer science courses (6.602B and 6.657G, mentioned in the introduction of the book) at the University of New South Wales.

UNSW had obtained UNIX source code in 1975, in response to Ken Robinson's 1974 query to Dennis Ritchie at Bell.[7] Bell Labs was a subsidiary of AT&T, due to the 1956 Consent Decree AT&T was not permitted to conduct business in any other field hence couldn't sell the software, though it was required, paradoxically, to license its inventions, such as Unix and the transistor. Western Electric, another AT&T subsidiary, administered the licensing. From 1977, with the v7 & later licenses, AT&T forbade code commentaries for teaching and allowed only one copy of the Lions Commentary, printed, per license.

The UNIX User's group, USENIX's newsletter, UNIX News, of March 1977, announced the availability of the book to UNIX licensees.[4]

Difficulty in keeping pace with the book's popularity, meant that by 1978 it was available only from AT&T Bell Labs.[8]

When AT&T announced UNIX Version 7 at USENIX in June 1979, the academic/research license no longer automatically permitted classroom use. However, thousands of computer science students around the world spread photocopies. As they were not being taught it 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.[citation needed]

Other follow-on effects of the license change included Andrew S. Tanenbaum creating Minix. As Tanenbaum wrote in Operating Systems (1987):

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 978-1-57398-013-5).[6] 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.

Contents

[edit]
Lions Commentary on UNIX 6th Edition with Source Code 1996 reissue[6]

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.

Brian Kernighan holding a copy of Lions's Commentary

The code as presented will run on a PDP-11/40 with RK05 disk drive, LP11 line printer interface, PCL11 paper tape writer and KL11 terminal interface, or a suitable PDP-11 emulator, such as SIMH.

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.

"You are not expected to understand this"

[edit]

The infamous program comment "You are not expected to understand this" occurs on line 2238 of the source code (Lions' Commentary, p. 22) at the end of a comment explaining the process exchange mechanism. It refers to line 325 of the file slp.c.[9] The source code reads:[10][11]

        /*
         * If the new process paused because it was
         * swapped out, set the stack level to the last call
         * to savu(u_ssav).  This means that the return
         * which is executed immediately after the call to aretu
         * actually returns from the last routine which did
         * the savu.
         *
         * You are not expected to understand this.
         */
        if(rp->p_flag&SSWAP) {
                rp->p_flag =& ~SSWAP;
                aretu(u.u_ssav);
        }

A major reason why this piece of code was hard to understand was that it depended on a quirk of the way the C compiler for the PDP-11 saved registers in procedure calls. This code failed when ported to other machines and had to be redesigned in Version 7 UNIX.[12] Dennis Ritchie later explained the meaning of this remark:[10]

"You are not expected to understand this" was intended as a remark in the spirit of "This won't be on the exam", rather than as an impudent challenge.

See also

[edit]
  • xv6 – Modern reimplementation of Sixth Edition Unix

References

[edit]
  1. ^ Lions, John (1976–1977). A commentary on the Sixth Edition UNIX Operating System. University of New South Wales: Department of Computer Science. OCLC 494684468.{{cite book}}: CS1 maint: publisher location (link)
  2. ^ Unix operating system source code level six. University of New South Wales: Department of Computer Science. 1976–1977. OCLC 494684460.{{cite book}}: CS1 maint: publisher location (link)
  3. ^ Jonathan Corbet Brian Kernighan on the origins of Unix LWN.net. January 17, 2022.
  4. ^ a b c "NEW BOOK". UNIX News. USENIX. Mar 1977.
  5. ^ a b Lehey, Greg (2015-09-14). "Commentary on the Sixth Edition UNIX Operating System". Greg Lehey, Warren Toomey.
  6. ^ a b c d Lions, John (1996). Lions' Commentary on UNIX 6th Edition with Source Code. Peer-to-Peer Communications. ISBN 978-1-57398-013-5.
  7. ^ Faculty of Engineering, UNSW, (Dean) (2020-09-18). "Remembering Ken Robinson". University of New South Wales: Engineering. Archived from the original on 2020-10-20.
  8. ^ The Daemon, The GNU and the Penguin - Chapters 2 & 3 (Peter H. Salus)
  9. ^ Ken Thompson. "unix-history-repo/usr/sys/ken/slp.c". GitHub. Retrieved 2018-10-12.
  10. ^ a b Dennis Ritchie (2002-06-22). "Odd Comments and Strange Doings in Unix". Retrieved 2025-12-26.
  11. ^ "swtch.com". swtch.com. Archived from the original on 2026-02-04. Retrieved 2026-05-12.
  12. ^ Johnson, S. C.; Ritchie, D. M. (1978). "UNIX Time-Sharing System: Portability of C Programs and the UNIX System" (PDF). Bell System Technical Journal. 57 (6): 2021–2048. doi:10.1002/j.1538-7305.1978.tb02141.x. S2CID 17510065. Archived (PDF) from the original on 2022-10-09. Retrieved 2025-12-26.

Further reading

[edit]
[edit]

Source: Wikipedia. Article content is retrieved live through the MediaWiki API.

Wikipedia

A Commentary on the UNIX Operating System

A Commentary on the Sixth Edition UNIX Operating System by John Lions (later reissued as Lions' Commentary on UNIX 6th Edition and commonly referred to as the Lions Book) is a highly influential 1976 publication containing analytical commentary on the source code of the 6th Edition Unix computer operating system "resident nucleus" (i.e., kernel) software, plus copy formatted and indexed by Lions, of said source code obtained from the authors at AT&T Bell Labs. Itself an exemplar of the early success of UNIX as portable code for a publishing platform, Lions's work was typeset using UNIX tools, on systems running code ported at the University, similar to that which it documented. It is suspected to be the most frequently photocopied book in computer science. Despite its age, Lions's book is still considered an excellent commentary on simple, high quality code. Lions's work was most recently reprinted in 1996 by Peer-To-Peer Communications, and has been circulated, recreated or reconstructed variously in a number of media by other parties.

MORE →
Wikipedia

Coherent (operating system)

Coherent is a clone of the Unix operating system for IBM PC compatibles and other microcomputers, developed and sold by the now-defunct Mark Williams Company (MWC). Historically, the operating system was a proprietary product, but it became open source in 2015, released under the BSD-3-Clause license.

MORE →
Wikipedia

UNIX System V

UNIX System V (pronounced: "System Five") is one of the first commercial versions of the Unix operating system. It was originally developed by AT&T and first released in 1983. Four major versions of System V were released, numbered 1, 2, 3, and 4. System V Release 4 (SVR4) was commercially the most successful version, being the result of an effort, marketed as Unix System Unification, which solicited the collaboration of the major Unix vendors. It was the source of several common commercial Unix features. System V is sometimes abbreviated to SysV. As of 2026, the AT&T-derived Unix market is divided between three System V variants: IBM's AIX, Oracle's Solaris, and the free-software illumos forked from OpenSolaris.

MORE →
Wikipedia

Unix System Laboratories

Unix System Laboratories (USL), sometimes written UNIX System Laboratories to follow relevant trademark guidelines of the time, was an American software laboratory and product development company that existed from 1989 through 1993. At first wholly, and then majority, owned by AT&T, it was responsible for the development and maintenance of one of the main branches of the Unix operating system, the UNIX System V Release 4 source code product. Through Univel, a partnership with Novell, it was also responsible for the development and production of the UnixWare packaged operating system for Intel architecture. In addition it developed Tuxedo, a transaction processing monitor, and was responsible for certain products related to the C++ programming language. USL was based in Summit, New Jersey, and its CEOs were Larry Dooling followed by Roel Pieper. Created from earlier AT&T entities, USL was, as industry writer Christopher Negus has observed, the culmination of AT&T's long involvement in Unix, "a jewel that couldn't quite find a home or a way to make a profit." USL was sold to Novell in 1993.

MORE →
TOPIC OF THE DAY

Greenwood / Black Wall Street

Before the 1921 destruction of Tulsa’s Greenwood District, Black residents had created a remarkable center of business and community life. The district included stores, professional offices, entertainment venues and homes owned by Black citizens. Understanding Greenwood means learning what was built—not only what was burned.

MORE →
TRIVIA QUESTION OF THE DAY

Which heavyweight champion was known as the “Brown Bomber”?

Joe Louis.