blob: 053c5607b85f6ecd03d14a41065174c8879bf363 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
Const
RTLD_NEXT = Pointer(-1);
RTLD_DEFAULT = nil;
function dlopen(__file:Pchar; __mode:longint):pointer;cdecl;external dllib name 'dlopen';
function dlclose(__handle:pointer):longint;cdecl;external dllib name 'dlclose';
function dlsym(__handle:pointer; __name:Pchar):pointer;cdecl;external dllib name 'dlsym';
function dlvsym(__handle:pointer; __name:Pchar; __version:Pchar):pointer;cdecl;external dllib name 'dlvsym';
function dlerror:Pchar;cdecl;external clib name 'dlerror';
type
PDl_info = ^Dl_info;
Dl_info = record
dli_fname : Pchar;
dli_fbase : pointer;
dli_sname : Pchar;
dli_saddr : pointer;
end;
function dladdr(__address:pointer; __info:PDl_info):longint;cdecl;external dllib name 'dladdr';
{ ---------------------------------------------------------------------
Borland compatibility types
---------------------------------------------------------------------}
Type
TDLInfo = Dl_info;
PDLInfo = ^TDLInfo;
function dladdr(__address:pointer; var __info: Dl_info):longint;cdecl;external dllib name 'dladdr';
|