A Commentary on the Sixth Edition Unix Operating System

(warsus.github.io)

11 points | by o4c 3 hours ago ago

2 comments

  • bediger4000 2 hours ago

    Lines 175, 180, 185 have some extremely weird structs, that do not make sense in today's C language. Back in 6th Edition C, all struct fields were in the same namespace, so you could use '->lobyte' or '->hibyte' on any pointer you cared to. Good stuff, I'm sure it made for very interesting bugs.

    • ajross an hour ago

      Which also explains why very old APIs like struct timeval and struct stat have namespaced field names.