Feature #9323

IO#writev

Added by Masaki Matsushita about 1 year ago. Updated about 1 year ago.

[ruby-core:59408]
Status:Open
Priority:Normal
Assignee:-

Description

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.

patch.diff Magnifier (7.83 KB) Masaki Matsushita, 12/30/2013 10:08 PM

History

#1 Updated by Eric Wong about 1 year ago

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.

Also available in: Atom PDF