From owner-freebsd-stable Thu Dec 2 12:34: 6 1999 Delivered-To: freebsd-stable@freebsd.org Received: from trooper.velocet.net (trooper.velocet.net [216.126.82.226]) by hub.freebsd.org (Postfix) with ESMTP id 420D214EC7 for ; Thu, 2 Dec 1999 12:33:54 -0800 (PST) (envelope-from dgilbert@trooper.velocet.net) Received: (from dgilbert@localhost) by trooper.velocet.net (8.9.3/8.9.3) id PAA52413; Thu, 2 Dec 1999 15:32:53 -0500 (EST) (envelope-from dgilbert) From: David Gilbert MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <14406.55156.963240.177647@trooper.velocet.net> Date: Thu, 2 Dec 1999 15:32:52 -0500 (EST) To: peter.jeremy@alcatel.com.au Cc: David Gilbert , freebsd-stable@FreeBSD.ORG Subject: Re: kernel not patching? In-Reply-To: <99Dec3.072037est.40324@border.alcanet.com.au> References: <14406.49542.335305.256245@trooper.velocet.net> <199912021907.OAA82987@misha.cisco.com> <14406.50809.85166.622558@trooper.velocet.net> <99Dec3.072037est.40324@border.alcanet.com.au> X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs Lucid Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >>>>> "Peter" == Peter Jeremy writes: Peter> (BTW, auto char *foo = "foo"; means that the stack contains a Peter> pointer to a string foo. The string will be in static storage Peter> - ie to find the stack, you need to work out the KVA for "foo" Peter> and then search for this address). Mmm.... knew that. May not have hacked kernel too much, but I have a fair grasp of C uglyness. the char *foo was put in as a global to check the value of the char foo[]="foostring" that I put into the functions. Now... this is not strictly C-legal, but with gcc, it will autosize foo[] and copy "foostring" into it. The cool thing is that sizeof(foo) == strlen(foo)+1. Dave. -- ============================================================================ |David Gilbert, Velocet Communications. | Two things can only be | |Mail: dgilbert@velocet.net | equal if and only if they | |http://www.velocet.net/~dgilbert | are precisely opposite. | =========================================================GLO================ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message