Re: Does anybody try to compile the 2.3 kernels at all ? :((

From: Sergey Kubushin (ksi@ksi-linux.com)
Date: Thu Feb 10 2000 - 17:42:52 EST


On Thu, 10 Feb 2000, Richard B. Johnson wrote:

I do know all of this. You did actually write it to me. But it's not a
good idea to rewrite several decent programs which worked since the dawn of
Linux. And which do work in another OS'es...

> On Fri, 11 Feb 2000, Sergey Kubushin wrote:
>
> [SNIPPED <fire and ice>]
>
> > But I wanna know what lies behind the changed /proc/*/cmdline.
>
> Read "the list". It's being worked on. I was one of the persons that
> discovered the change. The guy that's working on it says he's going
> to make it possible to read new pointers rather than just old data
> space.
>
> This means that:
>
> strcpy(argv[0], "Overwrite the command line and environment");
> .. which is dangerous... Will eventually allow:
>
> argv[0] = "New string of whatever length you want";
>
> This allows backwards compatibility as well as forwards. Right now,
> if you have a copy of your `init` source, just do:
>
>
> char tmp_buf0[0x08]; /* Room for "init" */
> char tmp_buf1[0x08]; /* Room for "auto" */
>
> strcpy(tmp_buf0, argv[0]);
> strcpy(tmp_buf1, argv[1]);
>
> argv[0] = (char *) malloc(0x100);
> argv[1] = (char *) malloc(0x100);
> strcpy(argv[0], tmp_buf0);
> strcpy(argv[1], tmp_buf1);
>
> This makes lots of room for future children so you don't have to
> modify any of them.
>
>
> Cheers,
> Dick Johnson
>
> Penguin : Linux version 2.3.41 on an i686 machine (800.63 BogoMips).
>

===========================================================================
Sergey Kubushin aka the Tamer < > The impossible we do immediately.
e-mail: ksi@ksi-linux.com SK320-RIPE < > Miracles require 24-hour notice.
===========================================================================

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Feb 15 2000 - 21:00:19 EST