line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package IO::Vectored; |
2
|
|
|
|
|
|
|
|
3
|
5
|
|
|
5
|
|
83814
|
use strict; |
|
5
|
|
|
|
|
11
|
|
|
5
|
|
|
|
|
174
|
|
4
|
|
|
|
|
|
|
|
5
|
5
|
|
|
5
|
|
21
|
use Carp; |
|
5
|
|
|
|
|
5
|
|
|
5
|
|
|
|
|
1236
|
|
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.110'; |
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
|
5
|
|
|
5
|
0
|
3931
|
my $fh = shift; |
19
|
|
|
|
|
|
|
|
20
|
5
|
|
|
|
|
58
|
my $fileno = fileno($fh); |
21
|
5
|
50
|
33
|
|
|
126
|
croak("closed or invalid file-handle passed to sysreadv") if !defined $fileno || $fileno < 0; |
22
|
|
|
|
|
|
|
|
23
|
5
|
|
|
|
|
974
|
return _backend($fileno, 0, @_); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
sub syswritev(*@) { |
27
|
9
|
|
|
9
|
0
|
3759
|
my $fh = shift; |
28
|
|
|
|
|
|
|
|
29
|
9
|
|
|
|
|
44
|
my $fileno = fileno($fh); |
30
|
9
|
100
|
66
|
|
|
366
|
croak("closed or invalid file-handle passed to syswritev") if !defined $fileno || $fileno < 0; |
31
|
|
|
|
|
|
|
|
32
|
8
|
|
|
|
|
159
|
return _backend($fileno, 1, @_); |
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
sub IOV_MAX() { |
36
|
1
|
|
|
1
|
0
|
712
|
return _get_iov_max(); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
1; |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
__END__ |