Name Date Size #Lines LOC

..--

hints/H20-Feb-2020-4522

t/H08-Jul-2024-193142

DynaLoader_pm.PLH A D29-Jan-202532.2 KiB1,007738

Makefile.PLH A D08-Jul-20241.6 KiB7560

READMEH A D20-Feb-20202 KiB5237

dl_aix.xsH A D29-Jan-202518.4 KiB792565

dl_dllload.xsH A D29-Jan-20256 KiB21799

dl_dlopen.xsH A D29-Jan-20258.6 KiB304139

dl_dyld.xsH A D29-Jan-20255.5 KiB244155

dl_freemint.xsH A D29-Jan-20256 KiB224151

dl_hpux.xsH A D29-Jan-20255.1 KiB203144

dl_none.xsH A D20-Feb-2020316 2213

dl_vms.xsH A D20-Feb-202013.2 KiB389287

dl_win32.xsH A D08-Jul-20245 KiB226158

dlutils.cH A D08-Jul-20244.3 KiB166131

README

1Perl 5 DynaLoader
2
3See DynaLoader.pm for detailed specification.
4
5This module is very similar to the other Perl 5 modules except that
6Configure selects which dl_*.xs file to use.
7
8After Configure has been run the Makefile.PL will generate a Makefile
9which will run xsubpp on a specific dl_*.xs file and write the output
10to DynaLoader.c
11
12After that the processing is the same as any other module.
13
14Note that, to be effective, the DynaLoader module must be _statically_
15linked into perl! Configure should arrange this.
16
17This interface is based on the work and comments of (in no particular
18order): Larry Wall, Robert Sanders, Dean Roehrich, Jeff Okamoto, Anno
19Siegel, Thomas Neumann, Paul Marquess, Charles Bailey and others.
20
21The dl_*.xs files should either be named after the dynamic linking
22operating system interface used if that interface is available on more
23than one type of system, e.g.:
24	dlopen  for dlopen()/dlsym() type functions (SunOS, BSD)
25or else the osname, e.g., hpux, next, vms etc.
26
27Both are determined by Configure and so only those specific names that
28Configure knows/uses will work.
29
30If porting the DynaLoader to a platform that has a core dynamic linking
31interface similar to an existing generic type, e.g., dlopen,
32please try to port the corresponding dl_*.xs file (using #ifdef's if
33required).
34
35Otherwise, or if that proves too messy, create a new dl_*.xs file named
36after your osname. Configure will give preference to a dl_$osname.xs
37file if one exists.
38
39The file dl_dlopen.xs is a reference implementation by Paul Marquess
40which is a good place to start if porting from scratch. The dlutils.c file
41holds some common definitions that are #included into the dl_*.xs files.
42
43After the initial implementation of a new DynaLoader dl_*.xs file you
44may need to edit or create ext/MODULE/MODULE.bs files (library bootstrap
45files) to reflect the needs of your platform and linking software.
46
47Refer to DynaLoader.pm, lib/ExtUtils/MakeMaker.pm and any existing
48ext/MODULE/MODULE.bs files for more information.
49
50Tim Bunce.
51August 1994
52