From: naruse@... Date: 2015-06-12T08:18:13+00:00 Subject: [ruby-core:69539] [Ruby trunk - Feature #11253] [Assigned] rb_io_modestr_oflags for Ruby API Issue #11253 has been reported by Yui NARUSE. ---------------------------------------- Feature #11253: rb_io_modestr_oflags for Ruby API https://bugs.ruby-lang.org/issues/11253 * Author: Yui NARUSE * Status: Assigned * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- If you have a wrapper of IO.open, you may handle mode. For example on Windows, you may want to add 'b' / OBINARY to given mode. But some modes has only integer form like O_CLOEXEC, O_EXCL. If so you need to convert from modestr to oflags Therefore how about adding a Ruby API version of rb_io_modestr_oflags -- https://bugs.ruby-lang.org/