Forum: Ruby-core [ruby-trunk - Feature #8050][Open] struct stat to VALUE should be accessable from the C-API

Posted by Hans Mackowiak (hanmac)
on 2013-03-08 09:31
(Received via mailing list)
Issue #8050 has been reported by Hanmac (Hans Mackowiak).

----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050

Author: Hanmac (Hans Mackowiak)
Status: Open
Priority: Normal
Assignee: ruby-core
Category:
Target version:


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Posted by Nobuyoshi Nakada (nobu)
on 2013-03-08 13:23
(Received via mailing list)
Issue #8050 has been updated by nobu (Nobuyoshi Nakada).


:+1:
----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050#change-37391

Author: Hanmac (Hans Mackowiak)
Status: Open
Priority: Normal
Assignee: ruby-core
Category:
Target version:


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Posted by drbrain (Eric Hodel) (Guest)
on 2013-03-11 04:31
(Received via mailing list)
Issue #8050 has been updated by drbrain (Eric Hodel).

File file.c.rb_stat_new.patch added
Category set to core
Status changed from Open to Assigned
Assignee changed from ruby-core to matz (Yukihiro Matsumoto)
Target version set to current: 2.1.0

This patch seems to implement the feature.
----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050#change-37489

Author: Hanmac (Hans Mackowiak)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: current: 2.1.0


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Posted by Nobuyoshi Nakada (nobu)
on 2013-03-11 06:18
(Received via mailing list)
Issue #8050 has been updated by nobu (Nobuyoshi Nakada).


vote for ruby/io.h.
----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050#change-37497

Author: Hanmac (Hans Mackowiak)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: current: 2.1.0


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Posted by andrenth (Andre Nathan) (Guest)
on 2013-03-11 14:21
(Received via mailing list)
Issue #8050 has been updated by andrenth (Andre Nathan).


Can we also have a way to create a Dir object from a DIR pointer? 
Something like rb_dir_new(DIR *dir).
----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050#change-37503

Author: Hanmac (Hans Mackowiak)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: current: 2.1.0


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Posted by drbrain (Eric Hodel) (Guest)
on 2013-03-11 18:16
(Received via mailing list)
Issue #8050 has been updated by drbrain (Eric Hodel).


Please open separate feature request for DIR * -> Dir
----------------------------------------
Feature #8050: struct stat to VALUE should be accessable from the C-API
https://bugs.ruby-lang.org/issues/8050#change-37513

Author: Hanmac (Hans Mackowiak)
Status: Assigned
Priority: Normal
Assignee: matz (Yukihiro Matsumoto)
Category: core
Target version: current: 2.1.0


filc.c has methods to turn an struct stat into an File::Stat, the 
problem is that this methods are not accessable from the outside, and 
cant me mimiced my coping into the c-Ext code.

so it would be good if there where a VALUE rb_stat_new(stuct stat); or 
something like that for the C-API
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.