Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Bernhard Agthe <dark2star@xxxxxxx>
- Date: Mon, 18 Feb 2008 16:50:02 +0100
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.
Have a look at configure (autoconf/automake): a small code snippet is
echo'd to a file and compiled and the output parsed ;-) You can do all
you want in a bash-Script...
Or try the "file" command: file xxx.bin will even tell you, whether the
executable is dynamically linked ;-)
How much time do you want to spend ;-)
Good luck...
.
- 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
- Re: How to determine if running on a 32 or 64 bits kernel ?
- From: Chris Friesen
- How to determine if running on a 32 or 64 bits kernel ?
- Prev by Date: Re: USB device just moves
- Next by Date: LSM, SECURITY_NETWORK (register_security, mod_reg_security) on 2.6.24.2
- 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
|