ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/IO-AIO/AIO.pm
(Generate patch)

Comparing IO-AIO/AIO.pm (file contents):
Revision 1.294 by root, Sat Aug 25 19:25:32 2018 UTC vs.
Revision 1.296 by root, Sun Aug 26 03:17:35 2018 UTC

171use common::sense; 171use common::sense;
172 172
173use base 'Exporter'; 173use base 'Exporter';
174 174
175BEGIN { 175BEGIN {
176 our $VERSION = 4.54; 176 our $VERSION = 4.6;
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
2093Like the functions above, but returns all four times in one go (and maybe 2093Like the functions above, but returns all four times in one go (and maybe
2094more in future versions). 2094more in future versions).
2095 2095
2096=item $counter = IO::AIO::st_gen 2096=item $counter = IO::AIO::st_gen
2097 2097
2098Returns the generation counter of the file. This is only available on 2098Returns the generation counter (in practice this is just a random number)
2099platforms which have this member in their C<struct stat> (most BSDs 2099of the file. This is only available on platforms which have this member in
2100at the time of this writing) and generally only to the root usert. If 2100their C<struct stat> (most BSDs at the time of this writing) and generally
2101unsupported, C<0> is returned, but this might change to C<undef> in a 2101only to the root usert. If unsupported, C<0> is returned, but this might
2102future version. 2102change to C<undef> in a future version.
2103 2103
2104=back 2104=back
2105 2105
2106Example: print the high resolution modification time of F</etc>, using 2106Example: print the high resolution modification time of F</etc>, using
2107C<stat>, and C<IO::AIO::aio_stat>. 2107C<stat>, and C<IO::AIO::aio_stat>.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines