Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hp-ux 1

Status
Not open for further replies.

sushaga

Technical User
Apr 11, 2002
9
IN
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 from which i can print it in my c code.

Thanx in advance.
 
Hi,

There's another way, Just use

# file /stand/vmunix

For a 64 bit machine the Output is similar to

/stand/vmunix: ELF-64 executable object file - PA-RISC 2.0 (LP64)

For a 32 bit machine the output will not contain 64

Hope it helped.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top