LWN.net Logo

Advertisement

Front, Kernel, Security, Distributions, Development. See your byline here on LWN.net.

Advertise here

Maybe SCO had a point

Maybe SCO had a point

Posted Aug 22, 2003 1:26 UTC (Fri) by danw6144 (guest, #14336)
Parent article: Maybe SCO had a point

There exists a much simpler and innocent explanation for the code similarities
in SysVr4 and linux. Simple necessity -- the mother of all invention.

The ASSERTs and other code similarities didn't exist in older unixes because
they weren't SMP. When implementing new SMP code with locking functions it is
completely natural to have the debugging ASSERTs at points where the locking
is being implimented. It simply wouldn't make sense to sprinkle ASSERTs among
older fragments of the 32v code. Raymond plainly states there were obvious
differences in the two implimentations.

ESR states "The first ASSERT actually differs in a way that isn't trivial (the
Linux version excludes a size argument of zero). And there is a simple
functional reason for the locking calls; 32V didn't do SMP (Symmetric
Multi-Processing), but both SysVr4 and Linux do."

If you were implementing new SMP code where would your debug points be placed ?
Another hint is Raymond's steak dinner remark. It implies SysVr4 suffered from
lack of maintenance -- old debugging junk was left in the code.


(Log in to post comments)

Maybe SCO had a point

Posted Aug 22, 2003 2:49 UTC (Fri) by ken (subscriber, #625) [Link]

It's not obvious at all to insert the ASSERT macro at least I would not have done it.

Maybe SCO had a point

Posted Aug 22, 2003 7:46 UTC (Fri) by Wol (guest, #4433) [Link]

You forget. Didn't Alan Cox write the linux SMP. With assistance from Caldera! And when did SMP go into Unix?

I don't know my timelines, but it's quite possible - and reasonable - that Caldera asked Alan's permission to put his SMP code into Unix. Seeing as it was their money that helped pay for the code to be written (and helped pay for Alan's reputation) it would have been extremely churlish for him to have refused!

OK, I'm likely wrong. But these things are happening so fast, people take time to respond, and it wouldn't surprise me if Alan is only now waking up to this story (it seems to have happened during our night ...)

Cheers,
Wol

Copyright © 2012, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds