Add man files and info file. Update README. Tag as 2.99.3.
This commit is contained in:
39
libffi/man/ffi.3
Normal file
39
libffi/man/ffi.3
Normal file
@@ -0,0 +1,39 @@
|
||||
.Dd July 20, 2007
|
||||
.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 ffi_status
|
||||
.Fo ffi_prep_closure
|
||||
.Fa "ffi_closure *closure"
|
||||
.Fa "ffi_cif *cif"
|
||||
.Fa "void (*fun)(ffi_cif*,void*,void**,void*)"
|
||||
.Fa "void *user_data"
|
||||
.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_prep_closure 3 ,
|
||||
.Xr ffi_call 3
|
||||
Reference in New Issue
Block a user