--- IO-AIO/AIO.pm 2005/08/23 00:03:14 1.36 +++ IO-AIO/AIO.pm 2005/08/28 10:51:33 1.38 @@ -67,9 +67,11 @@ BEGIN { $VERSION = 1.6; - @EXPORT = qw(aio_read aio_write aio_open aio_close aio_stat aio_lstat aio_unlink - aio_rmdir aio_symlink aio_fsync aio_fdatasync aio_readahead); - @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel max_outstanding nreqs); + @EXPORT = qw(aio_sendfile aio_read aio_write aio_open aio_close stat + aio_aio_lstat aio_unlink aio_rmdir aio_readdir aio_symlink + aio_fsync aio_fdatasync aio_readahead); + @EXPORT_OK = qw(poll_fileno poll_cb min_parallel max_parallel + max_outstanding nreqs); require XSLoader; XSLoader::load IO::AIO, $VERSION; @@ -233,6 +235,15 @@ Asynchronously rmdir (delete) a directory and call the callback with the result code. +=item aio_readdir $pathname $callback + +Unlike the POSIX call of the same name, C reads an entire +directory (i.e. opendir + readdir + closedir). The entries will not be +sorted, and will B include the C<.> and C<..> entries. + +The callback a single argument which is either C or an array-ref +with the filenames. + =item aio_fsync $fh, $callback Asynchronously call fsync on the given filehandle and call the callback