Commit 1dcbf73
src: define fs.constants.S_IWUSR & S_IRUSR for Win
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: #41591
PR-URL: #42757
Refs: #41591
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent 6190552 commit 1dcbf73
File tree
3 files changed
+35
-1
lines changed- doc/api
- src
- test/parallel
3 files changed
+35
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6486 | 6486 | | |
6487 | 6487 | | |
6488 | 6488 | | |
6489 | | - | |
| 6489 | + | |
| 6490 | + | |
| 6491 | + | |
| 6492 | + | |
| 6493 | + | |
6490 | 6494 | | |
6491 | 6495 | | |
6492 | 6496 | | |
| |||
6539 | 6543 | | |
6540 | 6544 | | |
6541 | 6545 | | |
| 6546 | + | |
| 6547 | + | |
6542 | 6548 | | |
6543 | 6549 | | |
6544 | 6550 | | |
| |||
6567 | 6573 | | |
6568 | 6574 | | |
6569 | 6575 | | |
| 6576 | + | |
| 6577 | + | |
6570 | 6578 | | |
6571 | 6579 | | |
6572 | 6580 | | |
| |||
6661 | 6669 | | |
6662 | 6670 | | |
6663 | 6671 | | |
| 6672 | + | |
| 6673 | + | |
| 6674 | + | |
6664 | 6675 | | |
6665 | 6676 | | |
6666 | 6677 | | |
| |||
6705 | 6716 | | |
6706 | 6717 | | |
6707 | 6718 | | |
| 6719 | + | |
| 6720 | + | |
| 6721 | + | |
6708 | 6722 | | |
6709 | 6723 | | |
6710 | 6724 | | |
| |||
6765 | 6779 | | |
6766 | 6780 | | |
6767 | 6781 | | |
| 6782 | + | |
| 6783 | + | |
6768 | 6784 | | |
6769 | 6785 | | |
6770 | 6786 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
50 | 60 | | |
51 | 61 | | |
52 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments