… | |
… | |
171 | use common::sense; |
171 | use common::sense; |
172 | |
172 | |
173 | use base 'Exporter'; |
173 | use base 'Exporter'; |
174 | |
174 | |
175 | BEGIN { |
175 | BEGIN { |
176 | our $VERSION = 4.41; |
176 | our $VERSION = 4.5; |
177 | |
177 | |
178 | our @AIO_REQ = qw(aio_sendfile aio_seek aio_read aio_write aio_open aio_close |
178 | our @AIO_REQ = qw(aio_sendfile aio_seek aio_read aio_write aio_open aio_close |
179 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
179 | aio_stat aio_lstat aio_unlink aio_rmdir aio_readdir aio_readdirx |
180 | aio_scandir aio_symlink aio_readlink aio_realpath aio_fcntl aio_ioctl |
180 | aio_scandir aio_symlink aio_readlink aio_realpath aio_fcntl aio_ioctl |
181 | aio_sync aio_fsync aio_syncfs aio_fdatasync aio_sync_file_range |
181 | aio_sync aio_fsync aio_syncfs aio_fdatasync aio_sync_file_range |
… | |
… | |
405 | following POSIX and non-POSIX constants are available (missing ones on |
405 | following POSIX and non-POSIX constants are available (missing ones on |
406 | your system are, as usual, C<0>): |
406 | your system are, as usual, C<0>): |
407 | |
407 | |
408 | C<O_ASYNC>, C<O_DIRECT>, C<O_NOATIME>, C<O_CLOEXEC>, C<O_NOCTTY>, C<O_NOFOLLOW>, |
408 | C<O_ASYNC>, C<O_DIRECT>, C<O_NOATIME>, C<O_CLOEXEC>, C<O_NOCTTY>, C<O_NOFOLLOW>, |
409 | C<O_NONBLOCK>, C<O_EXEC>, C<O_SEARCH>, C<O_DIRECTORY>, C<O_DSYNC>, |
409 | C<O_NONBLOCK>, C<O_EXEC>, C<O_SEARCH>, C<O_DIRECTORY>, C<O_DSYNC>, |
410 | C<O_RSYNC>, C<O_SYNC>, C<O_PATH>, C<O_TMPFILE>, and C<O_TTY_INIT>. |
410 | C<O_RSYNC>, C<O_SYNC>, C<O_PATH>, C<O_TMPFILE>, C<O_TTY_INIT> and C<O_ACCMODE>. |
411 | |
411 | |
412 | |
412 | |
413 | =item aio_close $fh, $callback->($status) |
413 | =item aio_close $fh, $callback->($status) |
414 | |
414 | |
415 | Asynchronously close a file and call the callback with the result |
415 | Asynchronously close a file and call the callback with the result |
… | |
… | |
2159 | |
2159 | |
2160 | =item IO::AIO::munmap $scalar |
2160 | =item IO::AIO::munmap $scalar |
2161 | |
2161 | |
2162 | Removes a previous mmap and undefines the C<$scalar>. |
2162 | Removes a previous mmap and undefines the C<$scalar>. |
2163 | |
2163 | |
2164 | =item IO::AIO::mremap $scalar, $new_length, $flags = 0[, $new_address = 0] |
2164 | =item IO::AIO::mremap $scalar, $new_length, $flags = MREMAP_MAYMOVE[, $new_address = 0] |
2165 | |
2165 | |
2166 | Calls the Linux-specific mremap(2) system call. The C<$scalar> must have |
2166 | Calls the Linux-specific mremap(2) system call. The C<$scalar> must have |
2167 | been mapped by C<IO::AIO::mmap>, and C<$flags> must currently either be |
2167 | been mapped by C<IO::AIO::mmap>, and C<$flags> must currently either be |
2168 | C<0> or C<IO::AIO::MREMAP_MAYMOVE>. |
2168 | C<0> or C<IO::AIO::MREMAP_MAYMOVE>. |
2169 | |
2169 | |