--- IO-AIO/AIO.pm 2005/07/31 21:21:12 1.25 +++ IO-AIO/AIO.pm 2005/08/07 03:34:07 1.26 @@ -154,10 +154,6 @@ =item aio_readahead $fh,$offset,$length, $callback -Asynchronously reads the specified byte range into the page cache, using -the C syscall. If that syscall doesn't exist (likely if your OS -isn't Linux) the status will be C<-1> and C<$!> is set to C. - C populates the page cache with data from a file so that subsequent reads from that file will not block on disk I/O. The C<$offset> argument specifies the starting point from which data is to be read and @@ -167,6 +163,9 @@ (off-set+length). C does not read beyond the end of the file. The current file offset of the file is left unchanged. +If that syscall doesn't exist (likely if your OS isn't Linux) it will be +emulated by simply reading the data, which would have a similar effect. + =item aio_stat $fh_or_path, $callback =item aio_lstat $fh, $callback @@ -202,8 +201,10 @@ =item aio_fdatasync $fh, $callback Asynchronously call fdatasync on the given filehandle and call the -callback with the fdatasync result code. Might set C<$!> to C if -C is not available. +callback with the fdatasync result code. + +If this call isn't available because your OS lacks it or it couldn't be +detected, it will be emulated by calling C instead. =back