nobu 8109114b18 Add IO#pread and IO#pwrite methods
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.

Based on patches by Avseyev <sergey.avseyev@gmail.com> at
[ruby-core:79290].  [Feature #4532]

* configure.in: check for pwrite(2).  pread() is already used
  internally for IO.copy_stream.

* io.c: implement wrappers for pread(2) and pwrite(2) and expose
  them in IO.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-04-03 00:10:50 +00:00
..
2017-03-29 19:12:01 +00:00
2016-10-12 15:28:07 +00:00
2016-10-12 15:28:07 +00:00
2016-05-06 14:30:01 +00:00
2016-12-06 12:49:46 +00:00
2017-03-22 12:27:53 +00:00
2017-03-22 12:27:53 +00:00
2016-08-30 00:44:34 +00:00
2016-08-30 00:44:34 +00:00
2016-12-26 12:00:01 +00:00