Home
last modified time | relevance | path

Searched refs:stringToFlags (Results 1 – 8 of 8) sorted by relevance

/third_party/node/test/parallel/
Dtest-fs-open-flags.js43 const { stringToFlags } = require('internal/fs/utils');
45 assert.strictEqual(stringToFlags('r'), O_RDONLY);
46 assert.strictEqual(stringToFlags('r+'), O_RDWR);
47 assert.strictEqual(stringToFlags('rs+'), O_RDWR | O_SYNC);
48 assert.strictEqual(stringToFlags('sr+'), O_RDWR | O_SYNC);
49 assert.strictEqual(stringToFlags('w'), O_TRUNC | O_CREAT | O_WRONLY);
50 assert.strictEqual(stringToFlags('w+'), O_TRUNC | O_CREAT | O_RDWR);
51 assert.strictEqual(stringToFlags('a'), O_APPEND | O_CREAT | O_WRONLY);
52 assert.strictEqual(stringToFlags('a+'), O_APPEND | O_CREAT | O_RDWR);
54 assert.strictEqual(stringToFlags('wx'), O_TRUNC | O_CREAT | O_WRONLY | O_EXCL);
[all …]
Dtest-fs-filehandle.js9 const { stringToFlags } = require('internal/fs/utils');
18 stringToFlags('r'), 0o666, undefined, ctx).fd;
/third_party/node/lib/internal/fs/
Dutils.js581 function stringToFlags(flags, name = 'flags') { function
961 stringToFlags, property
Dpromises.js64 stringToFlags,
587 const flagsNumber = stringToFlags(flags);
/third_party/node/lib/
Dfs.js112 stringToFlags,
410 const flagsNumber = stringToFlags(options.flag, 'options.flag');
575 const flagsNumber = stringToFlags(flags);
596 const flagsNumber = stringToFlags(flags);
/third_party/node/doc/changelogs/
DCHANGELOG_V9.md349 …* support as and as+ flags in stringToFlags() (Sarat Addepalli) [#18801](https://github.com/nodejs…
412 …607b33cfcc)] - **(SEMVER-MINOR)** **fs**: support as and as+ flags in stringToFlags() (Sarat Addep…
DCHANGELOG_V7.md2158 …com/nodejs/node/commit/7f7d1d385d)] - **(SEMVER-MAJOR)** **fs**: move stringToFlags() to lib/inter…
DCHANGELOG_V8.md589 …* support as and as+ flags in stringToFlags() (Sarat Addepalli) [#18801](https://github.com/nodejs…
703 …e25d5d077d)] - **(SEMVER-MINOR)** **fs**: support as and as+ flags in stringToFlags() (Sarat Addep…