From: glass.saga@... Date: 2017-07-13T03:28:36+00:00 Subject: [ruby-core:82020] [Ruby trunk Feature#9323] IO#writev Issue #9323 has been updated by Glass_saga (Masaki Matsushita). > It would be great if #write could take an array, and if possible, call writev. That's would be nice. ``` File.open("test", "w") do |f| f.write("foo", "bar", "baz") # use writev(2) if possible end ``` ---------------------------------------- Feature #9323: IO#writev https://bugs.ruby-lang.org/issues/9323#change-65749 * Author: Glass_saga (Masaki Matsushita) * Status: Open * Priority: Normal * Assignee: * Target version: 2.5 ---------------------------------------- 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) patch.diff (6.28 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: