line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IO::Vectored; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
97614
|
use strict; |
|
3
|
|
|
|
|
8
|
|
|
3
|
|
|
|
|
126
|
|
4
|
|
|
|
|
|
|
|
5
|
3
|
|
|
3
|
|
15
|
use Carp; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
1077
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.105'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
require Exporter; |
10
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
11
|
|
|
|
|
|
|
our @EXPORT = qw(sysreadv syswritev); |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
require XSLoader; |
14
|
|
|
|
|
|
|
XSLoader::load('IO::Vectored', $VERSION); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub sysreadv(*@) { |
18
|
3
|
|
|
3
|
0
|
3517
|
my $fh = shift; |
19
|
|
|
|
|
|
|
|
20
|
3
|
|
|
|
|
68
|
my $fileno = fileno($fh); |
21
|
3
|
50
|
33
|
|
|
107
|
croak("closed or invalid file-handle passed to sysreadv") if !defined $fileno || $fileno < 0; |
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
9082
|
return _backend($fileno, 0, @_); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub syswritev(*@) { |
27
|
7
|
|
|
7
|
0
|
11992
|
my $fh = shift; |
28
|
|
|
|
|
|
|
|
29
|
7
|
|
|
|
|
46
|
my $fileno = fileno($fh); |
30
|
7
|
100
|
66
|
|
|
325
|
croak("closed or invalid file-handle passed to syswritev") if !defined $fileno || $fileno < 0; |
31
|
|
|
|
|
|
|
|
32
|
6
|
|
|
|
|
127
|
return _backend($fileno, 1, @_); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub IOV_MAX() { |
36
|
1
|
|
|
1
|
0
|
733
|
return _get_iov_max(); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |