The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-22-2002
Registered User
 

Join Date: Apr 2002
Posts: 7
Stumble this Post!
hp-ux

hi,

I have got a simple doubt,

How to find whether i am working on 32 bit hp-ux or 64 bit hp-ux? is their any system call by which i can print it in my 'c ' code.

Thanx in advance.
Forum Sponsor
  #2 (permalink)  
Old 04-22-2002
Registered User
 

Join Date: Apr 2002
Location: Argentine - that better than to eat meat and to drink wine (both Argentineans)?.
Posts: 132
Stumble this Post!
In some OS's if you use the "file" command over a executable
program, you can see if the program is 64-bit or 32-bit,
  #3 (permalink)  
Old 04-22-2002
Registered User
 

Join Date: Nov 2001
Location: Wilkes-Barre, Pa
Posts: 7
Stumble this Post!
don't know if it helps, but i know also you can run:

getconf KERNEL_BITS

will return either a 32 or 64 to determine whether its 64 bit or 32 bit on HP-UX ... not sure how you can put that into a 'c' program...
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 07:18 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0