… | |
… | |
193 | use strict 'vars'; |
193 | use strict 'vars'; |
194 | |
194 | |
195 | use base 'Exporter'; |
195 | use base 'Exporter'; |
196 | |
196 | |
197 | BEGIN { |
197 | BEGIN { |
198 | our $VERSION = '3.18'; |
198 | our $VERSION = '3.19'; |
199 | |
199 | |
200 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
200 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
201 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir |
201 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir |
202 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
202 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
203 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
203 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
… | |
… | |
342 | |
342 | |
343 | Reads or writes C<$length> bytes from or to the specified C<$fh> and |
343 | Reads or writes C<$length> bytes from or to the specified C<$fh> and |
344 | C<$offset> into the scalar given by C<$data> and offset C<$dataoffset> |
344 | C<$offset> into the scalar given by C<$data> and offset C<$dataoffset> |
345 | and calls the callback without the actual number of bytes read (or -1 on |
345 | and calls the callback without the actual number of bytes read (or -1 on |
346 | error, just like the syscall). |
346 | error, just like the syscall). |
|
|
347 | |
|
|
348 | C<aio_read> will, like C<sysread>, shrink or grow the C<$data> scalar to |
|
|
349 | offset plus the actual number of bytes read. |
347 | |
350 | |
348 | If C<$offset> is undefined, then the current file descriptor offset will |
351 | If C<$offset> is undefined, then the current file descriptor offset will |
349 | be used (and updated), otherwise the file descriptor offset will not be |
352 | be used (and updated), otherwise the file descriptor offset will not be |
350 | changed by these calls. |
353 | changed by these calls. |
351 | |
354 | |