line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Sys::Sendfile; |
2
|
|
|
|
|
|
|
$Sys::Sendfile::VERSION = '0.17'; |
3
|
|
|
|
|
|
|
# This software is copyright (c) 2008, 2009 by Leon Timmermans . |
4
|
|
|
|
|
|
|
# |
5
|
|
|
|
|
|
|
# This is free software; you can redistribute it and/or modify it under |
6
|
|
|
|
|
|
|
# the same terms as perl itself. |
7
|
|
|
|
|
|
|
|
8
|
1
|
|
|
1
|
|
50403
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
23
|
|
9
|
1
|
|
|
1
|
|
4
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
25
|
|
10
|
|
|
|
|
|
|
|
11
|
1
|
|
|
1
|
|
4
|
use Exporter 5.57 'import'; |
|
1
|
|
|
|
|
20
|
|
|
1
|
|
|
|
|
20
|
|
12
|
1
|
|
|
1
|
|
5
|
use XSLoader; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
45
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
##no critic ProhibitAutomaticExportation |
15
|
|
|
|
|
|
|
our @EXPORT = qw/sendfile/; |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
XSLoader::load('Sys::Sendfile', __PACKAGE__->VERSION); |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
1; |
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
# ABSTRACT: Zero-copy data transfer |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
__END__ |