[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Linrad] Re: 32 or 64 bit



Isn't that simply telling you if the OS is 32 or 64 bit?  You can have 32 installed on a 64 bit platform. 

Or was that the original question?

-----Original Message-----
From: Leif Asbrink <leif@xxxxxxxxxx>
Date: Tue, 3 Nov 2009 03:56:42 
To: <linrad@xxxxxxxxxxxxxxxx>
Subject: [Linrad] Re: 32 or 64 bit


Hi Ken and Pierre,

> I'm certainly no serious programmer, so maybe this is not what you want:
> 
> uname -m
> 
> I only have 32 bit systems here, so it reports 'i686' on those (could
> also be i386/i486/i586).  My understanding is that 64 bit systems
> return 'x86_64'.
Yes. Thanks. I verified this on my Xeon system with 64 bit Suse.

I feel a bit uneasy about this method because when there are changes in 
the 64 bit architecture in the future, maybe the -m would report someting 
else....

Fortunately the hint from Pierre:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1257119123909+28353475&threadId=1193870
helped to this command: 

getconf LONG_BIT

There is a man page about getconf - but I can not find the 
parameter value LONG_BIT anywhere among the defined parameters.
As it turns out the old RedHat 6.1 (kernel 2.2.12) already has
this function and returns 32 so I decided to use it.

Problem solved:-)

73

Leif / SM5BSZ




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Linrad" group.
To post to this group, send email to linrad@xxxxxxxxxxxxxxxx
To unsubscribe from this group, send email to linrad+unsubscribe@xxxxxxxxxxxxxxxx
For more options, visit this group at http://groups.google.com/group/linrad?hl=en
-~----------~----~----~----~------~----~------~--~---

LINRADDARNIL