summaryrefslogtreecommitdiff
path: root/man/ffi.3
diff options
context:
space:
mode:
authorvivian, zhang <vivian.zhang@intel.com>2012-06-03 11:36:11 +0800
committervivian, zhang <vivian.zhang@intel.com>2012-06-03 11:36:11 +0800
commit2ea3addd3001ed339f0f0600d5c8845aa15d962e (patch)
tree22d5c87bdc38f47e4309166c81503afe0d6e09fc /man/ffi.3
parenta2cc1325a624fb4155b158646444c1723ff19092 (diff)
downloadlibffi-2ea3addd3001ed339f0f0600d5c8845aa15d962e.tar.gz
libffi-2ea3addd3001ed339f0f0600d5c8845aa15d962e.tar.bz2
libffi-2ea3addd3001ed339f0f0600d5c8845aa15d962e.zip
Initial import package libffi: A portable foreign function interface libraryHEAD2.0_alphamaster2.0alpha1.0_post
Diffstat (limited to 'man/ffi.3')
-rw-r--r--man/ffi.331
1 files changed, 31 insertions, 0 deletions
diff --git a/man/ffi.3 b/man/ffi.3
new file mode 100644
index 0000000..18b5d5d
--- /dev/null
+++ b/man/ffi.3
@@ -0,0 +1,31 @@
+.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