… | |
… | |
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 | |
… | |
… | |
1906 | ENOSYS, otherwise the return value of C<mprotect>. |
1908 | ENOSYS, 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 | |
1910 | Memory-maps a file (or anonymous memory range) and attaches it to the |
1912 | Memory-maps a file (or anonymous memory range) and attaches it to the |
1911 | given C<$scalar>, which will act like a string scalar. |
1913 | given C<$scalar>, which will act like a string scalar. Returns true on |
|
|
1914 | success, and false otherwise. |
1912 | |
1915 | |
1913 | The only operations allowed on the scalar are C<substr>/C<vec> that don't |
1916 | The only operations allowed on the scalar are C<substr>/C<vec> that don't |
1914 | change the string length, and most read-only operations such as copying it |
1917 | change the string length, and most read-only operations such as copying it |
1915 | or searching it with regexes and so on. |
1918 | or searching it with regexes and so on. |
1916 | |
1919 | |
… | |
… | |
1975 | |
1978 | |
1976 | Calls the GNU/Linux C<splice(2)> syscall, if available. If C<$r_off> or |
1979 | Calls the GNU/Linux C<splice(2)> syscall, if available. If C<$r_off> or |
1977 | C<$w_off> are C<undef>, then C<NULL> is passed for these, otherwise they |
1980 | C<$w_off> are C<undef>, then C<NULL> is passed for these, otherwise they |
1978 | should be the file offset. |
1981 | should be the file offset. |
1979 | |
1982 | |
|
|
1983 | C<$r_fh> and C<$w_fh> should not refer to the same file, as splice might |
|
|
1984 | silently corrupt the data in this case. |
|
|
1985 | |
1980 | The following symbol flag values are available: C<IO::AIO::SPLICE_F_MOVE>, |
1986 | The following symbol flag values are available: C<IO::AIO::SPLICE_F_MOVE>, |
1981 | C<IO::AIO::SPLICE_F_NONBLOCK>, C<IO::AIO::SPLICE_F_MORE> and |
1987 | C<IO::AIO::SPLICE_F_NONBLOCK>, C<IO::AIO::SPLICE_F_MORE> and |
1982 | C<IO::AIO::SPLICE_F_GIFT>. |
1988 | C<IO::AIO::SPLICE_F_GIFT>. |
1983 | |
1989 | |
1984 | See the C<splice(2)> manpage for details. |
1990 | See the C<splice(2)> manpage for details. |