Project

General

Profile

Actions

Feature #11258

closed

add 'x' mode character for O_EXCL

Added by cremno (cremno phobia) almost 9 years ago. Updated over 5 years ago.

Status:
Closed
Target version:
-
[ruby-core:69568]

Description

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_v1.diff cremno (cremno phobia), 06/16/2015 06:47 PM
excl_mode_v2.diff (4.41 KB) excl_mode_v2.diff cremno (cremno phobia), 07/29/2015 06:35 PM

Related issues 1 (0 open1 closed)

Has duplicate Ruby master - Feature #14007: open mode 'x' to raise error if file existsClosedActions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0