Project

General

Profile

Feature #4532

[PATCH] add IO#pread and IO#pwrite methods

Added by normalperson (Eric Wong) almost 10 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
[ruby-core:35566]

Description

=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 patch with tests to implement feature normalperson (Eric Wong), 03/28/2011 02:06 PM
0001-Add-IO-pread-and-IO-pwrite-methods.patch (6.8 KB) 0001-Add-IO-pread-and-IO-pwrite-methods.patch Updated patch, for current trunk (57443) avsej (Sergey Avseyev), 01/27/2017 08:29 PM
0001-Add-IO-pread-and-IO-pwrite-methods-v3.patch (6.98 KB) 0001-Add-IO-pread-and-IO-pwrite-methods-v3.patch avsej (Sergey Avseyev), 01/27/2017 08:52 PM

Also available in: Atom PDF