1FFI::Probe::Runner(3) User Contributed Perl DocumentationFFI::Probe::Runner(3)
2
3
4
6 FFI::Probe::Runner - Probe runner for FFI
7
9 version 1.58
10
12 use FFI::Probe::Runner;
13
14 my $runner = FFI::Probe::Runner->new;
15 $runner->run('foo.so');
16
18 This class executes code in a dynamic library for probing and detecting
19 platform properties.
20
22 new
23 my $runner = FFI::Probe::Runner->new(%args);
24
25 Creates a new instance.
26
27 exe The path to the dlrun wrapper. The default is usually correct.
28
29 flags
30 The flags to pass into "dlopen". The default is "RTLD_LAZY" on
31 Unix and 0 on windows..
32
34 exe
35 my $exe = $runner->exe;
36
37 The path to the dlrun wrapper.
38
39 flags
40 my $flags = $runner->flags;
41
42 The flags to pass into "dlopen".
43
44 verify
45 $runner->verify;
46
47 Verifies the dlrun wrapper is working. Throws an exception in the
48 event of failure.
49
50 run
51 $runner->run($dll, @args);
52
53 Runs the "dlmain" function in the given dynamic library, passing in the
54 given arguments. Returns a FFI::Probe::Runner::Result object which
55 contains the results.
56
58 Author: Graham Ollis <plicease@cpan.org>
59
60 Contributors:
61
62 Bakkiaraj Murugesan (bakkiaraj)
63
64 Dylan Cali (calid)
65
66 pipcet
67
68 Zaki Mughal (zmughal)
69
70 Fitz Elliott (felliott)
71
72 Vickenty Fesunov (vyf)
73
74 Gregor Herrmann (gregoa)
75
76 Shlomi Fish (shlomif)
77
78 Damyan Ivanov
79
80 Ilya Pavlov (Ilya33)
81
82 Petr Písař (ppisar)
83
84 Mohammad S Anwar (MANWAR)
85
86 Håkon Hægland (hakonhagland, HAKONH)
87
88 Meredith (merrilymeredith, MHOWARD)
89
90 Diab Jerius (DJERIUS)
91
92 Eric Brine (IKEGAMI)
93
94 szTheory
95
96 José Joaquín Atria (JJATRIA)
97
98 Pete Houston (openstrike, HOUSTON)
99
101 This software is copyright (c) 2015-2022 by Graham Ollis.
102
103 This is free software; you can redistribute it and/or modify it under
104 the same terms as the Perl 5 programming language system itself.
105
106
107
108perl v5.34.1 2022-06-20 FFI::Probe::Runner(3)