From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Mosberger Date: Wed, 25 Sep 2002 18:48:47 +0000 Subject: Re: [Linux-ia64] platform detection at run-time Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-ia64@vger.kernel.org >>>>> On Wed, 25 Sep 2002 13:35:43 -0500, Nathan Straz said: Nathan> On Wed, Sep 25, 2002 at 02:18:51PM -0400, Nathan> Sane_Purushottam@emc.com wrote: >> What is the preferred method to determine the platform at run >> time ?? Are these values likely to change (after I change my code >> to handle this) ???? Nathan> I had to do the same thing for an application and I ended up Nathan> forking off a process to run the uname command. That doesn't work. On a properly configured machine, execve("/bin/uname") will return i686 when execute from an x86 process. --david