Skip to content

src: define S_IWUSR & S_IRUSR for Windows

Rodrigo Muino Tomonari requested to merge github/fork/xpack/S_IWUSR into master

On Windows, most of the POSIX file mode definitions are not available. However, functionally equivalent read/write definitions exists, and chmod() can use them. This patch defines two aliases, so that these definintions are issued in fs.constants.

Fixes: https://github.com/nodejs/node/issues/41591

Merge request reports

Loading