--- IO-AIO/AIO.pm 2012/04/06 22:51:02 1.223 +++ IO-AIO/AIO.pm 2012/05/28 17:00:19 1.226 @@ -170,7 +170,7 @@ use base 'Exporter'; BEGIN { - our $VERSION = '4.13'; + our $VERSION = '4.15'; our @AIO_REQ = qw(aio_sendfile aio_seek aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx @@ -274,6 +274,8 @@ IO::AIO::sendfile $ofh, $ifh, $offset, $count IO::AIO::fadvise $fh, $offset, $len, $advice + IO::AIO::mmap $scalar, $length, $prot, $flags[, $fh[, $offset]] + IO::AIO::munmap $scalar IO::AIO::madvise $scalar, $offset, $length, $advice IO::AIO::mprotect $scalar, $offset, $length, $protect IO::AIO::munlock $scalar, $offset = 0, $length = undef @@ -427,6 +429,12 @@ corresponding values from L, but perl guarantees they are the same, so don't panic. +As a GNU/Linux (and maybe Solaris) extension, also the constants +C and C are available, if they +could be found. No guarantees about suitability for use in C or +Perl's C can be made though, although I would naively assume they +"just work". + =item aio_read $fh,$offset,$length, $data,$dataoffset, $callback->($retval) =item aio_write $fh,$offset,$length, $data,$dataoffset, $callback->($retval) @@ -1965,6 +1973,23 @@ On systems that do not implement C, this function returns ENOSYS, otherwise the return value of C. +=item IO::AIO::splice $r_fh, $r_off, $w_fh, $w_off, $length, $flags + +Calls the GNU/Linux C syscall, if available. If C<$r_off> or +C<$w_off> are C, then C is passed for these, otherwise they +should be the file offset. + +The following symbol flag values are available: C, +C, C and +C. + +See the C manpage for details. + +=item IO::AIO::tee $r_fh, $w_fh, $length, $flags + +Calls the GNU/Linux C syscall, see it's manpage and the +description for C above for details. + =back =cut