… | |
… | |
66 | |
66 | |
67 | BEGIN { |
67 | BEGIN { |
68 | $VERSION = 1.6; |
68 | $VERSION = 1.6; |
69 | |
69 | |
70 | @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink |
70 | @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink |
71 | aio_rmdir aio_symlink aio_fsync aio_fdatasync aio_readahead); |
71 | aio_rmdir aio_readdir aio_symlink aio_fsync aio_fdatasync aio_readahead); |
72 | @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); |
72 | @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); |
73 | |
73 | |
74 | require XSLoader; |
74 | require XSLoader; |
75 | XSLoader::load IO::AIO, $VERSION; |
75 | XSLoader::load IO::AIO, $VERSION; |
76 | } |
76 | } |
… | |
… | |
231 | =item aio_rmdir $pathname, $callback |
231 | =item aio_rmdir $pathname, $callback |
232 | |
232 | |
233 | Asynchronously rmdir (delete) a directory and call the callback with the |
233 | Asynchronously rmdir (delete) a directory and call the callback with the |
234 | result code. |
234 | result code. |
235 | |
235 | |
|
|
236 | =item aio_readdir $pathname $callback |
|
|
237 | |
|
|
238 | Unlike the POSIX call of the same name, C<aio_readdir> reads an entire |
|
|
239 | directory (i.e. opendir + readdir + closedir). The entries will not be |
|
|
240 | sorted, and will B<NOT> include the C<.> and C<..> entries. |
|
|
241 | |
|
|
242 | The callback a single argument which is either C<undef> or an array-ref |
|
|
243 | with the filenames. |
|
|
244 | |
236 | =item aio_fsync $fh, $callback |
245 | =item aio_fsync $fh, $callback |
237 | |
246 | |
238 | Asynchronously call fsync on the given filehandle and call the callback |
247 | Asynchronously call fsync on the given filehandle and call the callback |
239 | with the fsync result code. |
248 | with the fsync result code. |
240 | |
249 | |