[macruby-changes] [MacRuby/MacRuby] a65199: IO.copy_stream will use copyfile() even when given...
noreply at github.com
noreply at github.com
Thu May 5 20:15:19 PDT 2011
Branch: refs/heads/master
Home: https://github.com/MacRuby/MacRuby
Commit: a65199394eea7ca0db48db080d393b4b40746d36
https://github.com/MacRuby/MacRuby/commit/a65199394eea7ca0db48db080d393b4b40746d36
Author: Watson <watson1978 at gmail.com>
Date: 2011-05-05 (Thu, 05 May 2011)
Changed paths:
M io.c
Log Message:
-----------
IO.copy_stream will use copyfile() even when given descriptors. fix a #363.
Test Script:
{{{
File.open("/tmp/a", "w") { |f|
f.write "x" * 10240
}
p IO.copy_stream("/tmp/a", "/tmp/b")
src = open("/tmp/a")
p IO.copy_stream(src, "/tmp/b")
src.close
src = open("/tmp/a")
dst = open("/tmp/c", "w")
p IO.copy_stream(src, dst)
src.close
dst.close
}}}
More information about the macruby-changes
mailing list