URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libffi/] [man/] [ffi_prep_cif.3] - Rev 732
Compare with Previous | Blame | View Log
.Dd February 15, 2008.Dt ffi_prep_cif 3.Sh NAME.Nm ffi_prep_cif.Nd Prepare a.Nm ffi_cifstructure for use with.Nm ffi_call..Sh SYNOPSIS.In ffi.h.Ft ffi_status.Fo ffi_prep_cif.Fa "ffi_cif *cif".Fa "ffi_abi abi".Fa "unsigned int nargs".Fa "ffi_type *rtype".Fa "ffi_type **atypes".Fc.Sh DESCRIPTIONThe.Nm ffi_prep_ciffunction prepares a.Nm ffi_cifstructure for use with.Nm ffi_call..Fa abispecifies a set of calling conventions to use..Fa atypesis an array of.Fa nargspointers to.Nm ffi_typestructs that describe the data type, size and alignment of each argument..Fa rtypepoints to an.Nm ffi_typethat describes the data type, size and alignment of thereturn value..Sh RETURN VALUESUpon successful completion,.Nm ffi_prep_cifreturns.Nm FFI_OK .It will return.Nm FFI_BAD_TYPEDEFif.Fa cifis.Nm NULLor.Fa atypesor.Fa rtypeis malformed. If.Fa abidoes not refer to a valid ABI,.Nm FFI_BAD_ABIwill be returned. Available ABIs aredefined in.Nm <ffitarget.h>..Sh SEE ALSO.Xr ffi 3 ,.Xr ffi_call 3
