ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.225 by root, Tue Apr 10 05:01:33 2012 UTC vs.
Revision 1.228 by root, Sun Jun 17 17:07:25 2012 UTC

272 IO::AIO::nready 272 IO::AIO::nready
273 IO::AIO::npending 273 IO::AIO::npending
274 274
275 IO::AIO::sendfile $ofh, $ifh, $offset, $count 275 IO::AIO::sendfile $ofh, $ifh, $offset, $count
276 IO::AIO::fadvise $fh, $offset, $len, $advice 276 IO::AIO::fadvise $fh, $offset, $len, $advice
277 IO::AIO::mmap $scalar, $length, $prot, $flags[, $fh[, $offset]]
278 IO::AIO::munmap $scalar
277 IO::AIO::madvise $scalar, $offset, $length, $advice 279 IO::AIO::madvise $scalar, $offset, $length, $advice
278 IO::AIO::mprotect $scalar, $offset, $length, $protect 280 IO::AIO::mprotect $scalar, $offset, $length, $protect
279 IO::AIO::munlock $scalar, $offset = 0, $length = undef 281 IO::AIO::munlock $scalar, $offset = 0, $length = undef
280 IO::AIO::munlockall 282 IO::AIO::munlockall
281 283
1906ENOSYS, otherwise the return value of C<mprotect>. 1908ENOSYS, otherwise the return value of C<mprotect>.
1907 1909
1908=item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset] 1910=item IO::AIO::mmap $scalar, $length, $prot, $flags, $fh[, $offset]
1909 1911
1910Memory-maps a file (or anonymous memory range) and attaches it to the 1912Memory-maps a file (or anonymous memory range) and attaches it to the
1911given C<$scalar>, which will act like a string scalar. 1913given C<$scalar>, which will act like a string scalar. Returns true on
1914success, and false otherwise.
1912 1915
1913The only operations allowed on the scalar are C<substr>/C<vec> that don't 1916The only operations allowed on the scalar are C<substr>/C<vec> that don't
1914change the string length, and most read-only operations such as copying it 1917change the string length, and most read-only operations such as copying it
1915or searching it with regexes and so on. 1918or searching it with regexes and so on.
1916 1919
1975 1978
1976Calls the GNU/Linux C<splice(2)> syscall, if available. If C<$r_off> or 1979Calls the GNU/Linux C<splice(2)> syscall, if available. If C<$r_off> or
1977C<$w_off> are C<undef>, then C<NULL> is passed for these, otherwise they 1980C<$w_off> are C<undef>, then C<NULL> is passed for these, otherwise they
1978should be the file offset. 1981should be the file offset.
1979 1982
1983C<$r_fh> and C<$w_fh> should not refer to the same file, as splice might
1984silently corrupt the data in this case.
1985
1980The following symbol flag values are available: C<IO::AIO::SPLICE_F_MOVE>, 1986The following symbol flag values are available: C<IO::AIO::SPLICE_F_MOVE>,
1981C<IO::AIO::SPLICE_F_NONBLOCK>, C<IO::AIO::SPLICE_F_MORE> and 1987C<IO::AIO::SPLICE_F_NONBLOCK>, C<IO::AIO::SPLICE_F_MORE> and
1982C<IO::AIO::SPLICE_F_GIFT>. 1988C<IO::AIO::SPLICE_F_GIFT>.
1983 1989
1984See the C<splice(2)> manpage for details. 1990See the C<splice(2)> manpage for details.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines