[#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:69627] [Ruby trunk - Feature #11258] add 'x' mode character for O_EXCL
From:
nobu@...
Date:
2015-06-17 04:16:38 UTC
List:
ruby-core #69627
Issue #11258 has been updated by Nobuyoshi Nakada. > ~~~diff > +#define MODE_BINARY_EXCL(a,b,c,d) \ > + ((oflags & O_EXCL) ? MODE_BINARY(d, c) : MODE_BINARY(b, a)) 'a', 'b' and 'c', 'd' are inverted? ---------------------------------------- Feature #11258: add 'x' mode character for O_EXCL https://bugs.ruby-lang.org/issues/11258#change-52974 * Author: cremno phobia * Status: Open * Priority: Normal * Assignee: ---------------------------------------- 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) -- https://bugs.ruby-lang.org/