LWN.net Logo

Heise reports from SCO Forum

Heise reports from SCO Forum

Posted Aug 19, 2003 14:30 UTC (Tue) by laurent (guest, #7539)
Parent article: Heise reports from SCO Forum

The interesting point is not where this code is coming from in Linux, but rather where it is coming from in UNIX(tm).

And based on the comments in the code if you do a search in Google the first hit you get is:

Based on that I would say that their case looks REALLY weak! :-)

Made my day...


(Log in to post comments)

Heise reports from SCO Forum

Posted Aug 19, 2003 14:39 UTC (Tue) by dark (subscriber, #8483) [Link]

Hmm, I remember discussing this exact same code on slashdot, about a month ago. The conclusion there was that the code was crappy and should be replaced anyway (thanks for the bugreport, SCO!), and that its ultimate source wasn't even from unix but from some book. A pity I don't remember the details.

Heise reports from SCO Forum

Posted Aug 19, 2003 14:39 UTC (Tue) by BrucePerens (guest, #2510) [Link]

Note that Caldera (which now calls itself SCO) placed that Unix code under a BSD license in 2000. The license is here.

Bruce

Heise reports from SCO Forum

Posted Aug 19, 2003 15:21 UTC (Tue) by rknop (guest, #66) [Link]

I love it. It's the keystone cops maneuver. Those guys are such jokes, in the sickest and saddest way. I heard on "Wait, Wait, Don't Tell Me" that humans share a greater fraction of their genes with rats than with cats. Me, though, I'm much more embarassed by sharing a large fraction of my genetic code with McBride and Sontag.

The code *may well* be copied just as SCO says. But it would have been *legitimately* copied.

Two possibilities. First, yes, the McBride and Sontag show is really that stupid, and they've just found the copied code without realizing that SCO/Caldera BSD'ed it years ago. Second, they do know that, but are hoping that nobody will notice; not letting anybody who won't side with them see the code until the very last minute is part of their plan to prevent people from figuring out that in fact the code was legitimately copied.

-Rob

Heise reports from SCO Forum

Posted Aug 19, 2003 15:44 UTC (Tue) by allesfresser (subscriber, #216) [Link]

Well, that's what their whole farce is about, isn't it? "All your base are belong to us", so no matter where it's copied from, they own it. And so there is no such thing as legitimate copying, no matter what all those nasty evil un-American commie pinko licenses say. What a nice, tidy, convenient hypothesis.

Not.

Heise reports from SCO Forum

Posted Aug 19, 2003 16:20 UTC (Tue) by gups (guest, #14053) [Link]

Regardless of how stupid a show they're putting on, there always are people stupid enough to buy into their crap.

That's why McBride and gang will be making a fortune dumping their previously worthless stocks, and that's probably all they've ever wanted to do.

It's sad.

Heise reports from SCO Forum

Posted Aug 19, 2003 18:31 UTC (Tue) by dsmouse (guest, #14180) [Link]

I hope that they DO make a fortune dumpint their stocks. I also hope they get charged with illegal stock market manipulation

Heise reports from SCO Forum

Posted Aug 19, 2003 15:47 UTC (Tue) by PaulShirley (guest, #14164) [Link]

That document specifically excludes Sys V derivatives, which seems to be what they're currently attacking.

Heise reports from SCO Forum

Posted Aug 19, 2003 16:02 UTC (Tue) by frazier (guest, #3060) [Link]

Bruce,

That license doesn't look GPL compatible to me due to the following:

The following copyright notice applies to the source code files for which this license is granted.

Copyright(C) Caldera International Inc. 2001-2002. All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

Redistributions of source code and documentation must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

All advertising materials mentioning features or use of this software must display the following acknowledgement:

This product includes software developed or owned by Caldera International, Inc.

Provided this is the case (and I'm following licenses correctly), inclusion in a GPL'd system would be in violation of Caldera's license. That noted, once again Caldera/SCO has likely redistributed this code (uh, set of comments) under the GPL for their own Linux distribution.

Heise reports from SCO Forum

Posted Aug 19, 2003 16:19 UTC (Tue) by BrucePerens (guest, #2510) [Link]

The same code is available under the BSD license without the advertising clause in code copyrighted by the University. I assume this code is subject of the USL vs. BSDI lawsuit and its following settlement. I think it's time for the University to say something about the settlement terms, which aren't entirely public although the results are well-known. We can subpoena them in one of the lawsuits, if necessary. If this came down to attribution and the advertising clause in the Caldera license, they'd have no case anyway.

Bruce

Heise reports from SCO Forum

Posted Aug 19, 2003 17:36 UTC (Tue) by mmarq (guest, #2332) [Link]

"Identical typing errors in the comments as well as unusual ways of writing would have left traitorous traces, to stated Sontag"

" team for pattern recognition had angeheuert, around ten thousands from program lines to through forests. The few code sequences shown apart from the comments were made to a large extent illegible, alleged, in order to protect SCOs author-genuine"

AFAI can read, "they" are making pretty vague, and in a rogue manner, allegations about the copying "mantra"... there is no conclusive statement that garanties that they are talking about this particular algorithm, and not just showing "pattern" like "Identical typing errors" to prove that Linux/OSS are thieves, even without having stealed anything!...

The clear intention, is to confuse the Linux/OSS community, because it is all ears now, as this almost blowing up of the LWN server is prove, and maintain them as far as possible from defeating is master M$, aligned behind "corporate" interests, and at the same time collect a "FEW" dollars from stock speculation and a few really scared users...

In few words, Plain "Criminal" Diversion...

Heise reports from SCO Forum

Posted Aug 19, 2003 14:40 UTC (Tue) by mjr (guest, #6979) [Link]

Yep, what fun. For reference, roughly the same thing is also in 2.11BSD.

Heise reports from SCO Forum

Posted Aug 19, 2003 14:46 UTC (Tue) by BrucePerens (guest, #2510) [Link]

So, there's talk that this code is actually out of a textbook. Anyone know which?

Bruce

Heise reports from SCO Forum

Posted Aug 19, 2003 14:50 UTC (Tue) by kunitz (subscriber, #3965) [Link]

The slashdot discussion one month ago mentioned the Lion's book.

It seems to be that one:

Lion's Commentary on UNIX with Source Code
by John Lions and Dennis M. Ritchie, ISBN 1573980137

Heise reports from SCO Forum

Posted Aug 19, 2003 15:06 UTC (Tue) by BrucePerens (guest, #2510) [Link]

Can someone with the book verify that the text actually appears, and what page it's on? FYI, here is the Amazon link for the book. Some of the precious Unix source code appears there. I wonder if SCO will sue Amazon. :-)

Bruce

Reference to the Lions book

Posted Aug 19, 2003 15:11 UTC (Tue) by cdamian (subscriber, #1271) [Link]

I don't understand japanese, but this seem to refer to the code and the Lion book: Unix 6th Edition Kernel Source Code and malloc.c

Heise reports from SCO Forum

Posted Aug 19, 2003 15:20 UTC (Tue) by LenZ (subscriber, #1051) [Link]

I don't have have the Lion book, but a german translation of Maurice J. Bach's Design of the Unix Operating System.

FWIW, It does include a quite similar looking pseudocode example for the malloc() routine:

algorithm malloc   /* algorithm to allocate map space */
input:   (1) map address  /* indicates which map to use */
         (2) requested number of units
output:  address, if succesful
         0, otherwise
{
    for (every map entry)
    {
        if (current map entry can fit in requested units)
        {
            if (requested units == number of units in entry)
                delete entry from map;
            else
                adjust start address of entry;
            return (original address of entry);
        }
     }
     return(0);
}

Not sure, if this is helpful in any way...

Heise reports from SCO Forum

Posted Aug 19, 2003 15:24 UTC (Tue) by rfunk (subscriber, #4054) [Link]

Well, the Lions book contains all of the Unix v6 kernel code, and it
wasn't quite legal until Caldera blessed it in 1995-1996-ish, after which
it was officialy published.

The book is divided into two parts -- the bare code listing, and the
commentary. This code appear in line 2522, sheet 25 of the code listing.
The commentary is on page 5-2.

Heise reports from SCO Forum

Posted Aug 19, 2003 15:30 UTC (Tue) by rfunk (subscriber, #4054) [Link]

As it appears in the Lions book:
 
/* 
 * Allocate size units from the given 
 * map. Return the base of the allocated 
 * space. 
 * Algorithm is first fit. 
 */ 
malloc(mp, size) 
struct map *mp; 
{ 
   register int a; 
   register struct map *bp; 
 
   for (bp = mp; bp->m_size; bp++) { 
           if (bp->m_size >= size) { 
                   a = bp->m_addr; 
                   bp->m_addr =+ size; 
                   if ((bp->m_size =- size) == 0) 
                       do { 
                           bp++; 
                           (bp-1)->m_addr = bp->m_addr; 
                       while((bp-1)->m_size = bp->m_size); 
                   return(a); 
           } 
   } 
   return(0); 
} 

Heise reports from SCO Forum

Posted Aug 19, 2003 18:03 UTC (Tue) by rfunk (subscriber, #4054) [Link]

Oops, I missed a closing brace in this line:
 
                       while((bp-1)->m_size = bp->m_size); 
Should be:
 
                       } while((bp-1)->m_size = bp->m_size); 

Heise reports from SCO Forum

Posted Aug 19, 2003 15:32 UTC (Tue) by rfunk (subscriber, #4054) [Link]

Oops, it was the Santa Cruz Operation that blessed it, not Caldera.
Caldera didn't get the rights until later, then they opened it all under
the BSD-style license.

Heise reports from SCO Forum

Posted Aug 19, 2003 15:28 UTC (Tue) by kunitz (subscriber, #3965) [Link]

It gets more funny, in the foreword, which you can read at amazon.com the author thanks the "old" SCO for allowing the publication of the book.

The book has been published in April 1996 and has been declared UNIX book of the Year in 1996 by Unix Review's. The slashdot discussion mentioned, that the book contains a copyright notice by SCO.

Heise reports from SCO Forum

Posted Aug 19, 2003 16:17 UTC (Tue) by lorenb (guest, #14166) [Link]

I have this book and in Chapter 5. The book doesn't have pages per say. This is what's the index:

malloc:

line page
------------
2528 5-2
2534 5-2
2535 5-2
2536 5-2
2537 5-2
2538 5-2
2539 5-2
2542 5-2
2543 5-2

Heise reports from SCO Forum

Posted Aug 19, 2003 16:28 UTC (Tue) by daw (guest, #14169) [Link]

A very similar malloc implementation also appears in Kernighan & Ritchie's "The C Programming Language," arguably the most common computer programming textbook ever. I have the second edition (1988), and the code is on p. 187, but I imagine it's in the first, 1978, edition as well.

K&R's version uses a linked list of structs to store the free pointers, while the ancient unix version uses an array of pointers, but the structure of the code snippet is otherwise the same, and it seems likely to me that it had a common ancestor.

FWIW, "The Design and Implementation of the 4.4BSD Operating System" (McKusick et al., 1996) also has a short discussion of the kernel malloc implmentation (no code), which mentions the "first-fit" algorithm.

Heise reports from SCO Forum

Posted Aug 19, 2003 23:30 UTC (Tue) by Jocko (guest, #14206) [Link]

K&R First Edition (1978) has this code on page 175. Sounds like it's the same as the
described Second Edition code.

Heise reports from SCO Forum

Posted Aug 19, 2003 14:43 UTC (Tue) by dwalters (subscriber, #4207) [Link]

Intersting. If you look at the index page for that web site, it seems to indicate that the code in question originates from a version of Unix from 1979!

I don't know if that's good or bad, but it sure looks the same. Can someone unlighten us on the pedigree of the "32V Kernel", from which this code seems to originate?

Heise reports from SCO Forum

Posted Aug 19, 2003 15:16 UTC (Tue) by haabendal (guest, #527) [Link]

> Can someone unlighten us on the pedigree of the "32V Kernel", from which this code seems to originate?

http://minnie.tuhs.org/UnixTree/32VKern/

Heise reports from SCO Forum

Posted Aug 19, 2003 15:17 UTC (Tue) by rfunk (subscriber, #4054) [Link]

This article should answer many questions about the 32V code....

Why Caldera Released Unix: A Brief History
by Ian F. Darwin
03/01/2002

Where is the code ?

Posted Aug 19, 2003 16:37 UTC (Tue) by mmarq (guest, #2332) [Link]

Actually they dont show any "SIDE BY SIDE", at least in this article, code from linux and from Sytem V...

What they show is a similar "header comment" and everybody is assuming is a piece of code that appeared in a book.

Far as is showed, THERE IS NO EQUAL CODE !

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