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