hp-ux


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers hp-ux
# 1  
Old 04-22-2002
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.
# 2  
Old 04-22-2002
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  
Old 04-22-2002
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...
 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question