![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| 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 !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| DNS Conflict | thomi39 | UNIX for Dummies Questions & Answers | 1 | 04-05-2008 01:33 PM |
| invalid getconf output and Perl compile | csross | SUN Solaris | 2 | 05-02-2007 06:03 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
getconf LONG_BIT and isainfo conflict
I wish to programmatically determine whether a solaris system is 32-bit or 64-bit. Investigation on the web suggested that the following commands were the right way to test this:
# isainfo -kv # getconf LONG_BIT Strangely, on all three of the solaris systems I have access to, isainfo returned 64-bit sparcv9 kernel modules but getconf returned 32! Which is right? I had believed based on statements by a former coworker that one system was 32 bit and another was 64 (and I didn't know for the third), but then when I went to check, I got really confused. |
|
||||
|
Another thing to try is
getconf -v POSIX_V6_LP64_OFF64 LONG_BIT or getconf -v XBS5_LP64_OFF64 LONG_BIT The -v option specifies a 64 bit environment. I don't think the getconf command is returning 32 just because it was compiled as a 32 bit executable. I believe it is returning 32 because your default compiling environment is 32 bit. It should be getting its info from /usr/include/limits.h or /usr/include/unistd.h I don't have access to a solaris machine, so I cannot test this out for you. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|