mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-23 19:03:59 +08:00
b7b857bbe2
2009-06-08 Andrew Haley <aph@redhat.com> Import from libffi 3.0.8: * doc/libffi.texi: New file. * doc/libffi.info: Likewise. * doc/stamp-vti: Likewise. * man/Makefile.am: New file. * man/ffi_call.3: New file. * Makefile.am (EXTRA_DIST): Add src/x86/darwin64.S, src/dlmalloc.c. (nodist_libffi_la_SOURCES): Add X86_FREEBSD. * configure.ac: Bump version to 3.0.8. parisc*-*-linux*: Add. i386-*-freebsd* | i386-*-openbsd*: Add. powerpc-*-beos*: Add. AM_CONDITIONAL X86_FREEBSD: Add. AC_CONFIG_FILES: Add man/Makefile. * include/ffi.h.in (FFI_FN): Change void (*)() to void (*)(void). From-SVN: r148309
32 lines
648 B
Groff
32 lines
648 B
Groff
.Dd February 15, 2008
|
|
.Dt FFI 3
|
|
.Sh NAME
|
|
.Nm FFI
|
|
.Nd Foreign Function Interface
|
|
.Sh LIBRARY
|
|
libffi, -lffi
|
|
.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
|
|
.Ft void
|
|
.Fo ffi_call
|
|
.Fa "ffi_cif *cif"
|
|
.Fa "void (*fn)(void)"
|
|
.Fa "void *rvalue"
|
|
.Fa "void **avalue"
|
|
.Fc
|
|
.Sh DESCRIPTION
|
|
The foreign function interface provides a mechanism by which a function can
|
|
generate a call to another function at runtime without requiring knowledge of
|
|
the called function's interface at compile time.
|
|
.Sh SEE ALSO
|
|
.Xr ffi_prep_cif 3 ,
|
|
.Xr ffi_call 3
|