Project

General

Profile

Actions

Feature #8077

closed

Returning Dir objects from C extensions

Added by andrenth (Andre Nathan) almost 12 years ago. Updated over 5 years ago.

Status:
Feedback
Assignee:
-
Target version:
-
[ruby-core:53322]

Description

In 1.8 it was possible to return Dir objects from C extensions by mimicking the code in dir.c and using Data_Wrap_Struct(rb_cDir, dir_mark, dir_free, dirp). This doesn't work in 1.9+, so it would be nice to have the Dir methods exposed to C extensions. For example, something like "VALUE rb_dir_new(DIR *)".

Updated by nobu (Nobuyoshi Nakada) almost 12 years ago

  • Category set to ext
  • Status changed from Open to Feedback
  • Target version set to 2.6

For what purpose?

Updated by andrenth (Andre Nathan) almost 12 years ago

The code I'm working with is wrapping the fdopendir(3) function (return a DIR* from a file descriptor). This is currently not possible except in ruby 1.8.

Updated by andrenth (Andre Nathan) about 11 years ago

Any chance of this going ahead?

Actions #4

Updated by naruse (Yui NARUSE) almost 7 years ago

  • Target version deleted (2.6)
Actions #5

Updated by jeremyevans0 (Jeremy Evans) over 5 years ago

  • Tracker changed from Bug to Feature
  • ruby -v deleted (1.9.3p194)
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0