… | |
… | |
168 | use common::sense; |
168 | use common::sense; |
169 | |
169 | |
170 | use base 'Exporter'; |
170 | use base 'Exporter'; |
171 | |
171 | |
172 | BEGIN { |
172 | BEGIN { |
173 | our $VERSION = '3.6'; |
173 | our $VERSION = '3.65'; |
174 | |
174 | |
175 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
175 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
176 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
176 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
177 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
177 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
178 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
178 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
… | |
… | |
1580 | C<IO::AIO::MAP_NORESERVE>, C<IO::AIO::MAP_POPULATE> or |
1580 | C<IO::AIO::MAP_NORESERVE>, C<IO::AIO::MAP_POPULATE> or |
1581 | C<IO::AIO::MAP_NONBLOCK> |
1581 | C<IO::AIO::MAP_NONBLOCK> |
1582 | |
1582 | |
1583 | If C<$fh> is C<undef>, then a file descriptor of C<-1> is passed. |
1583 | If C<$fh> is C<undef>, then a file descriptor of C<-1> is passed. |
1584 | |
1584 | |
|
|
1585 | C<$offset> is the offset from the start of the file - it generally must be |
|
|
1586 | a multiple of C<IO::AIO::PAGESIZE> and defaults to C<0>. |
|
|
1587 | |
1585 | Example: |
1588 | Example: |
1586 | |
1589 | |
1587 | use Digest::MD5; |
1590 | use Digest::MD5; |
1588 | use IO::AIO; |
1591 | use IO::AIO; |
1589 | |
1592 | |