Date: Thu, 2 Dec 1999 15:32:52 -0500 (EST) From: David Gilbert <dgilbert@velocet.ca> To: peter.jeremy@alcatel.com.au Cc: David Gilbert <dgilbert@velocet.ca>, freebsd-stable@FreeBSD.ORG Subject: Re: kernel not patching? Message-ID: <14406.55156.963240.177647@trooper.velocet.net> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Peter" == Peter Jeremy <jeremyp@gsmx07.alcatel.com.au> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14406.55156.963240.177647>