getabi(1)
getabi - determine which ABI to use
As shipped in IRIX 6.5.15. Unchanged since IRIX 6.5.
NAME getabi - determine which ABI to use SYNOPSIS getabi [size] <ignore|preserve|remove|add> [<args>] DESCRIPTION getabi is used to determine whether to use the 32-bit ABI (abi32) or the 64-bit ABI (abi64). It returns the ABI enumeration values as defined in /usr/include/getabi.h, and writes the new args list on standard output. First it checks the args for "-32" or "-64". If neither of these is given, then it checks the args for a "-mips[1-4]" option. Mips 1 and 2 imply abi32 while mips 3 and 4 imply abi64. If none of the args options specify the abi, then we check the SGI_ABI environment variable, which can be set to either "-32" or "-64". If SGI_ABI is not in the environment, then we check what kernel is installed. If we are running on a system that has the 64-bit kernel, then we default to abi64; else we default to abi32. The optional size argument says to return the ABI for the generic size (abi32 or abi64), rather than the specific ABI (abio32 or abi64). The ignore argument says to ignore the args list when determining the ABI; the preserve argument says to preserve the args list, while the remove and add arguments respectively remove and add the ABI value from the args list. EXAMPLES A csh example is as follows: set st = `getabi remove -32 -keep t.c` # echo abi value echo $status # echo new args list echo $st A sh example is as follows: args=`getabi size add foo -a t.c` # echo abi value echo $? # echo new args list echo $args SEE ALSO getabi(3c) DIAGNOSTICS getabi prints an error message on the standard error and returns noabi when it encounters an error.