*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->IRIX man pages -> getabi (1)              
Title
Content
Arch
Section
 

Contents


getabi(1)							     getabi(1)


NAME    [Toc]    [Back]

     getabi - determine	which ABI to use

SYNOPSIS    [Toc]    [Back]

     getabi [size] <ignore|preserve|remove|add>	[<args>]

DESCRIPTION    [Toc]    [Back]

     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    [Toc]    [Back]

     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    [Toc]    [Back]

      
      
     getabi(3c)

DIAGNOSTICS    [Toc]    [Back]

     getabi prints an error message on the standard error and returns noabi
     when it encounters	an error.


									PPPPaaaaggggeeee 1111
[ Back ]
 Similar pages
Name OS Title
IS_SEG1_VA Tru64 General: Determine if
ExtUtils::Liblist IRIX determine libraries to use and how to use them
IS_SEG0_VA Tru64 General: Determine if
IS_KSEG_VA Tru64 General: Determine if
vlisstreamused IRIX determine if VL stream is used
gss_test_oid_set_member Tru64 Determine if an OID is a member of a set.
clock OpenBSD determine processor time used
access IRIX determine accessibility of a file
magic2mime Linux determine file type
elf_kind IRIX determine file type
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service