Commit 1976284
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 5d15eb1 commit 1976284
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 | |
|---|---|---|---|
| |||
6771 | 6771 | | |
6772 | 6772 | | |
6773 | 6773 | | |
6774 | | - | |
| 6774 | + | |
| 6775 | + | |
| 6776 | + | |
| 6777 | + | |
| 6778 | + | |
6775 | 6779 | | |
6776 | 6780 | | |
6777 | 6781 | | |
| |||
6824 | 6828 | | |
6825 | 6829 | | |
6826 | 6830 | | |
| 6831 | + | |
| 6832 | + | |
6827 | 6833 | | |
6828 | 6834 | | |
6829 | 6835 | | |
| |||
6852 | 6858 | | |
6853 | 6859 | | |
6854 | 6860 | | |
| 6861 | + | |
| 6862 | + | |
6855 | 6863 | | |
6856 | 6864 | | |
6857 | 6865 | | |
| |||
6946 | 6954 | | |
6947 | 6955 | | |
6948 | 6956 | | |
| 6957 | + | |
| 6958 | + | |
| 6959 | + | |
6949 | 6960 | | |
6950 | 6961 | | |
6951 | 6962 | | |
| |||
6990 | 7001 | | |
6991 | 7002 | | |
6992 | 7003 | | |
| 7004 | + | |
| 7005 | + | |
| 7006 | + | |
6993 | 7007 | | |
6994 | 7008 | | |
6995 | 7009 | | |
| |||
7050 | 7064 | | |
7051 | 7065 | | |
7052 | 7066 | | |
| 7067 | + | |
| 7068 | + | |
7053 | 7069 | | |
7054 | 7070 | | |
7055 | 7071 | | |
| |||
| 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