… | |
… | |
174 | |
174 | |
175 | our @AIO_REQ = qw(aio_sendfile aio_seek aio_read aio_write aio_open aio_close |
175 | our @AIO_REQ = qw(aio_sendfile aio_seek 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_realpath aio_sync |
177 | aio_scandir aio_symlink aio_readlink aio_realpath aio_sync |
178 | aio_fsync aio_syncfs aio_fdatasync aio_sync_file_range aio_fallocate |
178 | aio_fsync aio_syncfs aio_fdatasync aio_sync_file_range aio_fallocate |
179 | aio_pathsync aio_readahead |
179 | aio_pathsync aio_readahead aio_fiemap |
180 | aio_rename aio_link aio_move aio_copy aio_group |
180 | aio_rename aio_link aio_move aio_copy aio_group |
181 | aio_nop aio_mknod aio_load aio_rmtree aio_mkdir aio_chown |
181 | aio_nop aio_mknod aio_load aio_rmtree aio_mkdir aio_chown |
182 | aio_chmod aio_utime aio_truncate |
182 | aio_chmod aio_utime aio_truncate |
183 | aio_msync aio_mtouch aio_mlock aio_mlockall |
183 | aio_msync aio_mtouch aio_mlock aio_mlockall |
184 | aio_statvfs |
184 | aio_statvfs |
… | |
… | |
413 | |
413 | |
414 | =cut |
414 | =cut |
415 | |
415 | |
416 | =item aio_seek $fh, $offset, $whence, $callback->($offs) |
416 | =item aio_seek $fh, $offset, $whence, $callback->($offs) |
417 | |
417 | |
418 | Seeks the filehandle to the new C<$offset>, similarly to perl'S |
418 | Seeks the filehandle to the new C<$offset>, similarly to perl's |
419 | C<sysseek>. The C<$whence> can use the traditional values (C<0> for |
419 | C<sysseek>. The C<$whence> can use the traditional values (C<0> for |
420 | C<IO::AIO::SEEK_SET>, C<1> for C<IO::AIO::SEEK_CUR> or C<2> for |
420 | C<IO::AIO::SEEK_SET>, C<1> for C<IO::AIO::SEEK_CUR> or C<2> for |
421 | C<IO::AIO::SEEK_END>). |
421 | C<IO::AIO::SEEK_END>). |
422 | |
422 | |
423 | The resulting absolute offset will be passed to the callback, or C<-1> in |
423 | The resulting absolute offset will be passed to the callback, or C<-1> in |