support SEEK_DATA and SEEK_HOLE
SEEKDATA and SEEKHOLE are whences for lseek(2) supported by Linux since version 3.1.
These are useful to deal with sparse files.
I propose that ruby supports these whences.
- Status changed from Assigned to Closed
- % Done changed from 0 to 100
This issue was solved with changeset r42211.
Masaki, thank you for reporting this issue.
Your contribution to Ruby is greatly appreciated.
May Ruby be with you.
io.c (interpretseekwhence): support SEEKDATA and SEEKHOLE.
These are whences for lseek(2) supported by Linux since version 3.1.
test/ruby/test_io.rb: Add tests for above.