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

Comparing AnyEvent/lib/AnyEvent/IO.pm (file contents):
Revision 1.2 by root, Wed Mar 28 22:28:48 2012 UTC vs.
Revision 1.3 by root, Wed Mar 28 23:11:16 2012 UTC

175 175
176use base "Exporter"; 176use base "Exporter";
177 177
178our @AE_REQ = qw( 178our @AE_REQ = qw(
179 ae_load ae_open ae_close ae_read ae_write ae_stat ae_lstat 179 ae_load ae_open ae_close ae_read ae_write ae_stat ae_lstat
180 ae_symlink ae_link ae_rename ae_unlink 180 ae_link ae_symlink ae_readlink ae_rename ae_unlink
181 ae_mkdir ae_rmdir 181 ae_mkdir ae_rmdir ae_readdir
182); 182);
183*EXPORT = \@AE_REQ; 183*EXPORT = \@AE_REQ;
184our @FLAGS = qw(O_RDONLY O_WRONLY O_RDWR O_CREAT O_EXCL O_TRUNC O_APPEND); 184our @FLAGS = qw(O_RDONLY O_WRONLY O_RDWR O_CREAT O_EXCL O_TRUNC O_APPEND);
185*EXPORT_OK = \@FLAGS; 185*EXPORT_OK = \@FLAGS;
186our %EXPORT_TAGS = (flags => \@FLAGS, ae => \@AE_REQ); 186our %EXPORT_TAGS = (flags => \@FLAGS, ae => \@AE_REQ);
317=item ae_symlink $oldpath, $newpath, $cb->($success) 317=item ae_symlink $oldpath, $newpath, $cb->($success)
318 318
319Calls C<symlink> on the paths. If an error occurs, passes I<no> arguments, 319Calls C<symlink> on the paths. If an error occurs, passes I<no> arguments,
320otherwise passes a true value. 320otherwise passes a true value.
321 321
322=item ae_readlink $path, $cb->($target)
323
324Calls C<readlink> on the paths. If an error occurs, passes I<no> arguments,
325otherwise passes the link target string.
326
322=item ae_rename $oldpath, $newpath, $cb->($success) 327=item ae_rename $oldpath, $newpath, $cb->($success)
323 328
324Calls C<rename> on the paths. If an error occurs, passes I<no> arguments, 329Calls C<rename> on the paths. If an error occurs, passes I<no> arguments,
325otherwise passes a true value. 330otherwise passes a true value.
326 331

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines