Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Chris Friesen <cbf123@xxxxxxxxxxxxx>
- Date: Fri, 15 Feb 2008 09:42:25 -0600
laurent.charmet@xxxxxxxxx wrote:
And for the last time, uname is NOT the solution:
uname -m on a Linux on powerpc give me PPC64. It's a 64 bits OS/
kernel ? NO ! it's a 32 bits because all system binaries are 32 bits
ELF
Perhaps on that particular machine userspace is all 32-bit. It's possible to run 64-bit userspace as well.
It's incredible that it's impossible to determine if os/kernel is 32
or 64 bits (or 128 !) with a small call.
Userspace is easy...it's whatever you compiled for. On the kernel side of things uname generally gives the information, but not always.
From another point of view...if userspace can't tell the bit-size of the kernel, can it possibly matter for userspace?
Chris
.
- Follow-Ups:
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Bernhard Agthe
- Re: How to determine if running on a 32 or 64 bits kernel ?
- References:
- How to determine if running on a 32 or 64 bits kernel ?
- From: laurent . charmet
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Chris Friesen
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: laurent . charmet
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: phil-news-nospam
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Joe Beanfish
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: laurent . charmet
- How to determine if running on a 32 or 64 bits kernel ?
- Prev by Date: Re: How to determine if running on a 32 or 64 bits kernel ?
- Next by Date: Re: How to determine if running on a 32 or 64 bits kernel ?
- Previous by thread: Re: How to determine if running on a 32 or 64 bits kernel ?
- Next by thread: Re: How to determine if running on a 32 or 64 bits kernel ?
- Index(es):
Relevant Pages
|