From: ko1@... Date: 2018-08-09T06:12:00+00:00 Subject: [ruby-core:88363] [Ruby trunk Feature#11258] add 'x' mode character for O_EXCL Issue #11258 has been updated by ko1 (Koichi Sasada). Assignee set to znz (Kazuhiro NISHIYAMA) ---------------------------------------- Feature #11258: add 'x' mode character for O_EXCL https://bugs.ruby-lang.org/issues/11258#change-73401 * Author: cremno (cremno phobia) * Status: Open * Priority: Normal * Assignee: znz (Kazuhiro NISHIYAMA) * Target version: ---------------------------------------- I just saw #11253 which contains: >But some modes has only integer form like O_CLOEXEC, O_EXCL. However C11 added `x` to open a file for exclusive access. It's also supported by Python. http://port70.net/~nsz/c/c11/n1570.html#7.21.5.3p5 https://docs.python.org/3.3/library/functions.html#open ---Files-------------------------------- excl_mode_v1.diff (3.46 KB) excl_mode_v2.diff (4.41 KB) -- https://bugs.ruby-lang.org/ Unsubscribe: