From: Steven Cole <elenstev@mesatop.com>
To: Linus Torvalds <torvalds@osdl.org>
Cc: Mitchell Blank Jr <mitch@sfgoth.com>,
"Giacomo A. Catenazzi" <cate@pixelized.ch>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Eric S. Raymond" <esr@thyrsus.com>
Subject: Re: SCO's infringing files list
Date: 23 Dec 2003 11:47:27 -0700 [thread overview]
Message-ID: <1072205246.1702.36.camel@spc9.esa.lanl.gov> (raw)
In-Reply-To: <Pine.LNX.4.58.0312230914090.14184@home.osdl.org>
On Tue, 2003-12-23 at 10:25, Linus Torvalds wrote:
> Bingo!
>
> On Tue, 23 Dec 2003, Mitchell Blank Jr wrote:
> >
> > This does seem to be the case - from an FAQ that H J Lu posted about that time:
> >
> > | From: hlu@yoda.eecs.wsu.edu (H.J. Lu)
> > | Subject: FAQ about gcc (how to compile program under Linux)
> > | Date: Sun, 19 Jul 92 06:40:05 GMT
> > | [...]
> > | Another file, XXXXinc.tar.Z, where XXXX is the current version number
> > | of Linux kernel, has all the header files to replace the header files
> > | from kernel. YOU MUST INSTALL IT. Please read README for details.
>
> Ok, this is the source.
>
> In particular, I can re-create _exactly_ the linux-0.97 "errno.h" file by
> using the "sys_errlist[]" contents from "libc-2.2.2". In particular, this
> trivial loop will generate the exact (byte-for-byte) list that is in the
> kernel:
>
> int i;
>
> for (i = 1; i < 122; i++) {
> const char *name = names[i];
> int n = strlen(name);
> char *tabs = "\t\t"+(n > 7);
> const char *expl = libc222_errlist[i];
> printf("#define\t%s%s%2d\t/* %s */\n",
> name, tabs, i, expl);
> }
>
> here, the "names[]" array was filled in with the error names, ie
>
> const char *names[] = { "none",
> "EPERM", "ENOENT", "ESRCH", "EINTR", "EIO", "ENXIO", "E2BIG",
> ...
>
> and the "libc222_errlist[]" array was filled in with the strings found by
> just downloading the old "libc-2.2.2" binary that can still be found at
>
> http://www.ibiblio.org/pub/Linux/libs/oldlibs/libc-2.2.2/
>
> and then just doing a "strings - libc-2.2.2" and "sys_errlist[]" will be
> obvious:
>
> static char *libc222_errlist[] = {
> "Unknown error",
> "Operation not permitted",
> ...
>
> This was literally a five-minute hack (I wrote the silly loop yesterday to
> see what it does with the current "strerror()" - there is very good
> correlation even today, but using the libc-2.2.2 sys_nerrlist[] you get
> _exactly_ the same result).
>
> So this is definitely the source of the kernel error header. It's either a
> file from the libc sources, or it is literally auto-generated like the
> above (I actually suspect the latter - now that I did the auto-generation
> it all felt very familiar, but that may just be my brain rationalizing
> things. Humans are good at rationalizing reality.).
>
> Can anybody find the actual libc _sources_? Not the kernel headers that
> hjl mentions (those are the old ones from _before_ the change), but the
> file "libc-2.2.2.tar.Z"?
>
> Anyway, we know where the kernel header comes from. Let's figure out where
> the libc data comes from.
>
> Linus
The earliest tarballs here may be of interest:
http://www.pell.portland.or.us/~orc/Code/libc/
[steven@spc9 libc-linux]$ head -n 20 jumptable1/string/_errlist.c
#include <ansidecl.h>
#include <stddef.h>
#include <errno.h>
/* This is a list of all known signal numbers. */
CONST char *CONST _sys_errlist[] = {
"Unknown error", /* 0 */
"Operation not permitted", /* EPERM */
"No such file or directory", /* ENOENT */
"No such process", /* ESRCH */
"Interrupted system call", /* EINTR */
"I/O error", /* EIO */
"No such device or address", /* ENXIO */
"Arg list too long", /* E2BIG */
"Exec format error", /* ENOEXEC */
"Bad file number", /* EBADF */
"No child processes", /* ECHILD */
"Try again", /* EAGAIN */
"Out of memory", /* ENOMEM */
That file dates from Nov 20 1992.
Steven
next prev parent reply other threads:[~2003-12-23 18:58 UTC|newest]
Thread overview: 54+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-22 20:42 Stan Bubrouski
2003-12-22 21:14 ` Joseph Pingenot
2003-12-22 21:23 ` Stan Bubrouski
2003-12-22 21:19 ` Tom Felker
2003-12-22 21:55 ` Linus Torvalds
2003-12-23 0:26 ` jw schultz
2003-12-23 1:17 ` Stan Bubrouski
2003-12-23 9:28 ` Florian Weimer
2003-12-23 9:58 ` Giacomo A. Catenazzi
2003-12-23 12:34 ` Linus Torvalds
2003-12-23 13:17 ` viro
2003-12-23 15:44 ` Giacomo A. Catenazzi
2003-12-23 16:04 ` Mitchell Blank Jr
2003-12-23 16:39 ` Mitchell Blank Jr
2003-12-23 17:25 ` Linus Torvalds
2003-12-23 18:40 ` Charles Cazabon
2003-12-23 18:44 ` viro
2003-12-23 18:45 ` Mitchell Blank Jr
2003-12-23 18:52 ` Matti Aarnio
2003-12-23 19:58 ` Shawn
2003-12-23 20:08 ` Stan Bubrouski
2003-12-23 20:25 ` John Shifflett
2004-01-02 19:45 ` Bill Davidsen
2003-12-23 18:47 ` Steven Cole [this message]
2003-12-23 20:06 ` Mitchell Blank Jr
2003-12-23 17:44 ` Mitchell Blank Jr
2003-12-23 17:56 ` Linus Torvalds
2003-12-23 18:12 ` Stan Bubrouski
2003-12-23 18:14 ` Harry McGregor
2003-12-23 18:27 ` Stan Bubrouski
2003-12-23 18:40 ` Disconnect
2003-12-23 18:14 ` Stan Bubrouski
2003-12-23 19:02 ` Stan Bubrouski
2003-12-23 19:06 ` Andries Brouwer
2003-12-23 20:18 ` Stan Bubrouski
2003-12-23 20:21 ` Mitchell Blank Jr
2003-12-23 20:27 ` Linus Torvalds
2003-12-23 23:56 ` [OT] " Thomas Zehetbauer
2003-12-24 0:15 ` Stan Bubrouski
2003-12-23 16:15 ` venom
2003-12-23 15:50 ` Mitchell Blank Jr
2003-12-23 17:07 ` Andries Brouwer
2003-12-22 23:52 ` Erik Andersen
2003-12-22 23:01 ` Jesper Juhl
2003-12-23 11:18 ` Luiz Fernando Capitulino
2003-12-23 4:50 ` David Schwartz
2003-12-23 15:43 Xose Vazquez Perez
2003-12-23 15:46 jpo234
2003-12-23 18:49 jpo234
2003-12-24 12:19 Norman Diamond
2003-12-24 13:11 ` Jussi Laako
[not found] <no.id>
2003-12-28 7:04 ` Rick Bressler
2003-12-30 14:17 Bruno Haible
2003-12-30 17:27 ` Stan Bubrouski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1072205246.1702.36.camel@spc9.esa.lanl.gov \
--to=elenstev@mesatop.com \
--cc=cate@pixelized.ch \
--cc=esr@thyrsus.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mitch@sfgoth.com \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®