From wkt at tuhs.org Mon May 21 15:18:02 2012 From: wkt at tuhs.org (Warren Toomey) Date: Mon, 21 May 2012 15:18:02 +1000 Subject: [TUHS] Oldest Unix source code still in modern systems Message-ID: <20120521051801.GA2210@minnie.tuhs.org> I was doing a trawl of related Unix source trees, and found that some early C code from around 2nd Edition Unix is still in OpenSolaris today: http://minnie.tuhs.org/cgi-bin/utree.pl?file=V2/cmd/if.c Choose: Compare this file to OpenSolaris_b135/cmd/fmli/sys/test.c and then click on the Side Scroll or the Printable button. There's about 15 lines of code in common between the 2 files. Cheers, Warren From arnold at skeeve.com Mon May 21 17:45:02 2012 From: arnold at skeeve.com (arnold at skeeve.com) Date: Mon, 21 May 2012 07:45:02 GMT Subject: [TUHS] Oldest Unix source code still in modern systems Message-ID: <201205210745.q4L7j2S0022517@freefriends.org> > I was doing a trawl of related Unix source trees, and found that some early > C code from around 2nd Edition Unix is still in OpenSolaris today: If it ain't broke, don't fix it? :-) From reed at reedmedia.net Tue May 22 01:00:12 2012 From: reed at reedmedia.net (Jeremy C. Reed) Date: Mon, 21 May 2012 10:00:12 -0500 (CDT) Subject: [TUHS] Oldest Unix source code still in modern systems In-Reply-To: <20120521051801.GA2210@minnie.tuhs.org> References: <20120521051801.GA2210@minnie.tuhs.org> Message-ID: On Mon, 21 May 2012, Warren Toomey wrote: > I was doing a trawl of related Unix source trees, and found that some early > C code from around 2nd Edition Unix is still in OpenSolaris today: > > http://minnie.tuhs.org/cgi-bin/utree.pl?file=V2/cmd/if.c > > Choose: Compare this file to OpenSolaris_b135/cmd/fmli/sys/test.c > and then click on the Side Scroll or the Printable button. > > There's about 15 lines of code in common between the 2 files. Cool. I recently did the same thing for BSD. http://www.bsdnewsletter.com/2012/05/Features181.html Some examples of code that is mostly the same since the first Berkeley distribution are: colcrt, expand, mkstr, and soelim. But a few others still have some of the original ~1976-1977 code. From aps at ieee.org Tue May 22 01:43:10 2012 From: aps at ieee.org (Armando Stettner) Date: Mon, 21 May 2012 11:43:10 -0400 Subject: [TUHS] Oldest Unix source code still in modern systems In-Reply-To: References: <20120521051801.GA2210@minnie.tuhs.org> Message-ID: <9F28D643-765D-4A49-B6B5-61A293DA936F@ieee.org> I would have suspected the oldest source code still existing in systems would be along the lines /* * you are not expected to understand this. */ :) aps Sent from my iPad On May 21, 2012, at 11:00 AM, "Jeremy C. Reed" wrote: > On Mon, 21 May 2012, Warren Toomey wrote: > >> I was doing a trawl of related Unix source trees, and found that some early >> C code from around 2nd Edition Unix is still in OpenSolaris today: >> >> http://minnie.tuhs.org/cgi-bin/utree.pl?file=V2/cmd/if.c >> >> Choose: Compare this file to OpenSolaris_b135/cmd/fmli/sys/test.c >> and then click on the Side Scroll or the Printable button. >> >> There's about 15 lines of code in common between the 2 files. > > Cool. I recently did the same thing for BSD. > http://www.bsdnewsletter.com/2012/05/Features181.html > Some examples of code that is mostly the same since the first Berkeley > distribution are: colcrt, expand, mkstr, and soelim. But a few others > still have some of the original ~1976-1977 code. > _______________________________________________ > TUHS mailing list > TUHS at minnie.tuhs.org > https://minnie.tuhs.org/mailman/listinfo/tuhs > From michael_davidson at pacbell.net Tue May 22 02:15:21 2012 From: michael_davidson at pacbell.net (Michael Davidson) Date: Mon, 21 May 2012 09:15:21 -0700 (PDT) Subject: [TUHS] Oldest Unix source code still in modern systems In-Reply-To: <9F28D643-765D-4A49-B6B5-61A293DA936F@ieee.org> Message-ID: <1337616921.5781.YahooMailClassic@web184718.mail.ne1.yahoo.com> --- On Mon, 5/21/12, Armando Stettner wrote: I would have suspected the oldest source code still existing in systems would be along the lines /* * you are not expected to understand this. */ That would certainly still be appropriate for the Linux context switch code which, last time I looked, was a horrible mess of gcc "asm" constructs glued together with C preprocessor macros. The comment that I miss most, however, is: /*  * printf should not be used for chit chat  */ md -------------- next part -------------- An HTML attachment was scrubbed... URL: From dave at horsfall.org Tue May 22 17:35:10 2012 From: dave at horsfall.org (Dave Horsfall) Date: Tue, 22 May 2012 17:35:10 +1000 (EST) Subject: [TUHS] Oldest Unix source code still in modern systems In-Reply-To: <1337616921.5781.YahooMailClassic@web184718.mail.ne1.yahoo.com> References: <1337616921.5781.YahooMailClassic@web184718.mail.ne1.yahoo.com> Message-ID: On Mon, 21 May 2012, Michael Davidson wrote: > /* > * you are not expected to understand this. > */ Line 2238, of course :-) For any youngsters here, that code is *subtle*. Vale, both DMR and Dr John Lions (my lecturer at UNSW). > That would certainly still be appropriate for the Linux context switch > code which, last time I looked, was a horrible mess of gcc "asm" > constructs glued together with C preprocessor macros. Typical Penguin/OS. I am in stitches. > The comment that I miss most, however, is: > > /* > * printf should not be used for chit chat > */ My favourite too :-) We ended up implementing the call via the TTY interface, so that our 11/40 would not be brought to her knees. -- Dave