Re: [Linux-ia64] platform detection at run-time

From: Nathan Straz <nstraz_at_sgi.com>
Date: 2002-09-26 04:57:38
On Wed, Sep 25, 2002 at 11:48:47AM -0700, David Mosberger wrote:
> >>>>> On Wed, 25 Sep 2002 13:35:43 -0500, Nathan Straz <nstraz@sgi.com> said:
>   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.

What are the puzzle pieces of a "properly configured machine?"  It's
worked on all Redhat 7.2 based systems I've run.  

-- 
Nate Straz                                              nstraz@sgi.com
sgi, inc                                           http://www.sgi.com/
Linux Test Project                                  http://ltp.sf.net/
Received on Wed Sep 25 11:57:41 2002

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:10 EST