Actions
Feature #8671
closedsupport SEEK_DATA and SEEK_HOLE
Description
SEEK_DATA and SEEK_HOLE 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.
Files
Updated by naruse (Yui NARUSE) over 11 years ago
- Description updated (diff)
- Status changed from Open to Assigned
- Assignee set to matz (Yukihiro Matsumoto)
- Target version changed from 2.6 to 2.1.0
It sounds good.
matz, how do you think?
Updated by kosaki (Motohiro KOSAKI) over 11 years ago
The patch looks good to me.
Updated by matz (Yukihiro Matsumoto) over 11 years ago
- Assignee changed from matz (Yukihiro Matsumoto) to Glass_saga (Masaki Matsushita)
We accept. Go ahead.
Matz.
Updated by Anonymous over 11 years ago
- 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 (interpret_seek_whence): support SEEK_DATA and SEEK_HOLE.
These are whences for lseek(2) supported by Linux since version 3.1.
[ruby-core:56123] [Feature #8671] -
test/ruby/test_io.rb: Add tests for above.
Actions
Like0
Like0Like0Like0Like0