* [TUHS] Oldest Unix source code still in modern systems
@ 2012-05-21 7:45 arnold
0 siblings, 0 replies; 6+ messages in thread
From: arnold @ 2012-05-21 7:45 UTC (permalink / raw)
> 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?
:-)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [TUHS] Oldest Unix source code still in modern systems
@ 2012-05-21 5:18 Warren Toomey
2012-05-21 15:00 ` Jeremy C. Reed
0 siblings, 1 reply; 6+ messages in thread
From: Warren Toomey @ 2012-05-21 5:18 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [TUHS] Oldest Unix source code still in modern systems
2012-05-21 5:18 Warren Toomey
@ 2012-05-21 15:00 ` Jeremy C. Reed
2012-05-21 15:43 ` Armando Stettner
0 siblings, 1 reply; 6+ messages in thread
From: Jeremy C. Reed @ 2012-05-21 15:00 UTC (permalink / raw)
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.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [TUHS] Oldest Unix source code still in modern systems
2012-05-21 15:00 ` Jeremy C. Reed
@ 2012-05-21 15:43 ` Armando Stettner
2012-05-21 16:15 ` Michael Davidson
0 siblings, 1 reply; 6+ messages in thread
From: Armando Stettner @ 2012-05-21 15:43 UTC (permalink / raw)
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" <reed at reedmedia.net> 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
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [TUHS] Oldest Unix source code still in modern systems
2012-05-21 15:43 ` Armando Stettner
@ 2012-05-21 16:15 ` Michael Davidson
2012-05-22 7:35 ` Dave Horsfall
0 siblings, 1 reply; 6+ messages in thread
From: Michael Davidson @ 2012-05-21 16:15 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 675 bytes --]
--- On Mon, 5/21/12, Armando Stettner <aps at ieee.org> 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: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20120521/6b0dab96/attachment.html>
^ permalink raw reply [flat|nested] 6+ messages in thread
* [TUHS] Oldest Unix source code still in modern systems
2012-05-21 16:15 ` Michael Davidson
@ 2012-05-22 7:35 ` Dave Horsfall
0 siblings, 0 replies; 6+ messages in thread
From: Dave Horsfall @ 2012-05-22 7:35 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-05-22 7:35 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-21 7:45 [TUHS] Oldest Unix source code still in modern systems arnold
-- strict thread matches above, loose matches on Subject: below --
2012-05-21 5:18 Warren Toomey
2012-05-21 15:00 ` Jeremy C. Reed
2012-05-21 15:43 ` Armando Stettner
2012-05-21 16:15 ` Michael Davidson
2012-05-22 7:35 ` Dave Horsfall
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).