line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::SSH::Any::Constants; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
4
|
use strict; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
0
|
|
|
1
|
|
|
|
|
16
|
|
5
|
1
|
|
|
1
|
|
2
|
use Carp; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
87
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
require Exporter; |
8
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
my %error = ( SSHA_OK => 0, |
11
|
|
|
|
|
|
|
SSHA_CONNECTION_ERROR => 1, |
12
|
|
|
|
|
|
|
SSHA_CHANNEL_ERROR => 2, |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
SSHA_TIMEOUT_ERROR => 4, |
15
|
|
|
|
|
|
|
SSHA_REMOTE_CMD_ERROR => 5, |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
SSHA_ENCODING_ERROR => 7, |
18
|
|
|
|
|
|
|
SSHA_LOCAL_IO_ERROR => 8, |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
SSHA_SCP_ERROR => 9, |
21
|
|
|
|
|
|
|
SSHA_SFTP_ERROR => 10, |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
SSHA_NO_BACKEND_ERROR => 20, |
24
|
|
|
|
|
|
|
SSHA_BACKEND_ERROR => 21, |
25
|
|
|
|
|
|
|
SSHA_UNIMPLEMENTED_ERROR => 22, |
26
|
|
|
|
|
|
|
SSHA_PROTOCOL_ERROR => 23, |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
SSHA_EAGAIN => 30, |
29
|
|
|
|
|
|
|
); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
for my $key (keys %error) { |
32
|
1
|
|
|
1
|
|
3
|
no strict 'refs'; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
106
|
|
33
|
|
|
|
|
|
|
my $value = $error{$key}; |
34
|
|
|
|
|
|
|
*{$key} = sub () { $value }; |
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
our %EXPORT_TAGS = (error => [keys %error]); |
38
|
|
|
|
|
|
|
our @EXPORT_OK = map { @{$EXPORT_TAGS{$_}} } keys %EXPORT_TAGS; |
39
|
|
|
|
|
|
|
$EXPORT_TAGS{all} = [@EXPORT_OK]; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
1; |