Issue #4532 has been updated by Sergey Avseyev.

File 0001-Add-IO-pread-and-IO-pwrite-methods.patch added

I rebased the patch against current trunk, and also made some improvements:

* raise NotImplementedError on platforms, which do not support pread/pwrite
* improved documentation
* fix argument order for IO#pwrite to be consistent with pwrite(2) and IO#pread, the offset should go last
* update tests and function names to follow the same style as other code


----------------------------------------
Feature #4532: [PATCH] add IO#pread and IO#pwrite methods
https://bugs.ruby-lang.org/issues/4532#change-62701

* Author: Eric Wong
* Status: Assigned
* Priority: Normal
* Assignee: Motohiro KOSAKI
* Target version: next minor
----------------------------------------
=begin
These methods are useful for safe/concurrent file I/O in
multi-thread/process environments and also fairly standard
nowadays especially in systems supporting pthreads.

pread() is already used internally for IO.copy_stream
=end


---Files--------------------------------
0001-add-IO-pread-and-IO-pwrite-methods.patch (6.22 KB)
0001-Add-IO-pread-and-IO-pwrite-methods.patch (6.8 KB)


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

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>