line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Linux::Pdeathsig; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
15349
|
use 5.008007; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
3
|
use strict; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
23
|
|
5
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
29
|
|
6
|
1
|
|
|
1
|
|
3
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
70
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require Exporter; |
9
|
1
|
|
|
1
|
|
534
|
use AutoLoader; |
|
1
|
|
|
|
|
992
|
|
|
1
|
|
|
|
|
4
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
# Items to export into callers namespace by default. Note: do not export |
14
|
|
|
|
|
|
|
# names by default without a very good reason. Use EXPORT_OK instead. |
15
|
|
|
|
|
|
|
# Do not simply export all your public functions/methods/constants. |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# This allows declaration use Linux::Pdeathsig ':all'; |
18
|
|
|
|
|
|
|
# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK |
19
|
|
|
|
|
|
|
# will save memory. |
20
|
|
|
|
|
|
|
our %EXPORT_TAGS = ( 'all' => [ qw( |
21
|
|
|
|
|
|
|
set_pdeathsig |
22
|
|
|
|
|
|
|
get_pdeathsig |
23
|
|
|
|
|
|
|
) ] ); |
24
|
|
|
|
|
|
|
|
25
|
|
|
|
|
|
|
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
our @EXPORT = qw( |
28
|
|
|
|
|
|
|
set_pdeathsig |
29
|
|
|
|
|
|
|
get_pdeathsig |
30
|
|
|
|
|
|
|
); |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
our $VERSION = '0.00_02'; |
33
|
|
|
|
|
|
|
our $XS_VERSION = $VERSION; |
34
|
|
|
|
|
|
|
$VERSION = eval $VERSION; # see L |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub AUTOLOAD { |
37
|
|
|
|
|
|
|
# This AUTOLOAD is used to 'autoload' constants from the constant() |
38
|
|
|
|
|
|
|
# XS function. |
39
|
|
|
|
|
|
|
|
40
|
0
|
|
|
0
|
|
|
my $constname; |
41
|
0
|
|
|
|
|
|
our $AUTOLOAD; |
42
|
0
|
|
|
|
|
|
($constname = $AUTOLOAD) =~ s/.*:://; |
43
|
0
|
0
|
|
|
|
|
croak "&Linux::Pdeathsig::constant not defined" if $constname eq 'constant'; |
44
|
0
|
|
|
|
|
|
my ($error, $val) = constant($constname); |
45
|
0
|
0
|
|
|
|
|
if ($error) { croak $error; } |
|
0
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
{ |
47
|
1
|
|
|
1
|
|
173
|
no strict 'refs'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
92
|
|
|
0
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
# Fixed between 5.005_53 and 5.005_61 |
49
|
|
|
|
|
|
|
#XXX if ($] >= 5.00561) { |
50
|
|
|
|
|
|
|
#XXX *$AUTOLOAD = sub () { $val }; |
51
|
|
|
|
|
|
|
#XXX } |
52
|
|
|
|
|
|
|
#XXX else { |
53
|
0
|
|
|
0
|
|
|
*$AUTOLOAD = sub { $val }; |
|
0
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
#XXX } |
55
|
|
|
|
|
|
|
} |
56
|
0
|
|
|
|
|
|
goto &$AUTOLOAD; |
57
|
|
|
|
|
|
|
} |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
require XSLoader; |
60
|
|
|
|
|
|
|
XSLoader::load('Linux::Pdeathsig', $XS_VERSION); |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
# Preloaded methods go here. |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
# Autoload methods go after =cut, and are processed by the autosplit program. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
1; |
67
|
|
|
|
|
|
|
__END__ |