… | |
… | |
186 | |
186 | |
187 | package IO::AIO; |
187 | package IO::AIO; |
188 | |
188 | |
189 | use Carp (); |
189 | use Carp (); |
190 | |
190 | |
191 | no warnings; |
191 | use common::sense; |
192 | use strict 'vars'; |
|
|
193 | |
192 | |
194 | use base 'Exporter'; |
193 | use base 'Exporter'; |
195 | |
194 | |
196 | BEGIN { |
195 | BEGIN { |
197 | our $VERSION = '3.26'; |
196 | our $VERSION = '3.261'; |
198 | |
197 | |
199 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
198 | our @AIO_REQ = qw(aio_sendfile aio_read aio_write aio_open aio_close |
200 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
199 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
201 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
200 | aio_scandir aio_symlink aio_readlink aio_sync aio_fsync |
202 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
201 | aio_fdatasync aio_sync_file_range aio_pathsync aio_readahead |
… | |
… | |
958 | (E.g. rename). This might not work on all operating systems or have any |
957 | (E.g. rename). This might not work on all operating systems or have any |
959 | specific effect, but usually it makes sure that directory changes get |
958 | specific effect, but usually it makes sure that directory changes get |
960 | written to disc. It works for anything that can be opened for read-only, |
959 | written to disc. It works for anything that can be opened for read-only, |
961 | not just directories. |
960 | not just directories. |
962 | |
961 | |
|
|
962 | Future versions of this function might fall back to other methods when |
|
|
963 | C<fsync> on the directory fails (such as calling C<sync>). |
|
|
964 | |
963 | Passes C<0> when everything went ok, and C<-1> on error. |
965 | Passes C<0> when everything went ok, and C<-1> on error. |
964 | |
966 | |
965 | =cut |
967 | =cut |
966 | |
968 | |
967 | sub aio_pathsync($;$) { |
969 | sub aio_pathsync($;$) { |