Issue #9323 has been updated by Eric Wong.


 Unless we have use for it, I don't think rb_io_writev should be in
 the C API, and even less reason for it to be public for extensions
 in ruby/intern.h
 
 Also, it'd probably be good to dedup the fptr->wbuf initialization
 code in io_binwrite*.
 
 Otherwise, I think this is fine.

----------------------------------------
Feature #9323: IO#writev
https://bugs.ruby-lang.org/issues/9323#change-44526

* Author: Masaki Matsushita
* Status: Open
* Priority: Normal
* Assignee: 
* Category: core
* Target version: current: 2.2.0
----------------------------------------
I propose addition of IO#writev.
It enables gather output from multiple buffers.
If writev(2) is not available, IO#writev uses Array#join to emulate atomic write.

---Files--------------------------------
patch.diff (7.83 KB)


-- 
http://bugs.ruby-lang.org/