[#69616] [Ruby trunk - Feature #11258] add 'x' mode character for O_EXCL — cremno@...
Issue #11258 has been updated by cremno phobia.
3 messages
2015/06/16
[#69643] [Ruby trunk - Misc #11276] [RFC] compile.c: convert to use ccan/list — normalperson@...
Issue #11276 has been updated by Eric Wong.
3 messages
2015/06/17
[#69751] [Ruby trunk - Bug #11001] 2.2.1 Segmentation fault in reserve_stack() function. — kubo@...
Issue #11001 has been updated by Takehiro Kubo.
3 messages
2015/06/27
[ruby-core:69554] [Ruby trunk - Feature #11253] rb_io_modestr_oflags for Ruby API
From:
akr@...
Date:
2015-06-12 15:11:21 UTC
List:
ruby-core #69554
Issue #11253 has been updated by Akira Tanaka. This issue is discussed at DevelopersMeeting20150612Japan. We found "flags" keyword argument would be better for the intent. ``` open(filename, "w", flags: File::EXCL) open(filename, "w", flags: File::SHARE_DELETE) ``` The argument will be bitwise-ORed to oflag for open system call. If a wrapper of open method want to add flags, it can add flags using integer. ---------------------------------------- Feature #11253: rb_io_modestr_oflags for Ruby API https://bugs.ruby-lang.org/issues/11253#change-52888 * 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/