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.24 by root, Sun Jul 31 18:45:48 2005 UTC vs.
Revision 1.25 by root, Sun Jul 31 21:21:12 2005 UTC

316 return undef if $_[0] < 0; 316 return undef if $_[0] < 0;
317 317
318 # try to generate nice filehandles 318 # try to generate nice filehandles
319 my $sym = "IO::AIO::fd#$_[0]"; 319 my $sym = "IO::AIO::fd#$_[0]";
320 local *$sym; 320 local *$sym;
321 open *$sym, "+<&=$_[0]" 321
322 open *$sym, "+<&$_[0]" # usually under any unix
323 or open *$sym, "<&$_[0]" # cygwin needs this
324 or open *$sym, ">&$_[0]" # cygwin needs this
322 or return undef; 325 or return undef;
323 326
324 *$sym 327 *$sym
325} 328}
326 329

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines