@@ -6526,7 +6526,11 @@ operations. |
6526 | 6526 |
|
6527 | 6527 | The following constants are exported by `fs.constants`. |
6528 | 6528 |
|
6529 | | -Not every constant will be available on every operating system. |
| 6529 | +Not every constant will be available on every operating system; |
| 6530 | +this is especially important for Windows, where many of the POSIX specific |
| 6531 | +definitions are not available. |
| 6532 | +For portable applications it is recommended to check for their presence |
| 6533 | +before use. |
6530 | 6534 |
|
6531 | 6535 | To use more than one constant, use the bitwise OR `|` operator. |
6532 | 6536 |
|
@@ -6579,6 +6583,8 @@ The following constants are meant for use as the `mode` parameter passed to |
6579 | 6583 | </tr> |
6580 | 6584 | </table> |
6581 | 6585 |
|
| 6586 | +The definitions are also available on Windows. |
| 6587 | +
|
6582 | 6588 | ##### File copy constants |
6583 | 6589 |
|
6584 | 6590 | The following constants are meant for use with [`fs.copyFile()`][]. |
@@ -6607,6 +6613,8 @@ The following constants are meant for use with [`fs.copyFile()`][]. |
6607 | 6613 | </tr> |
6608 | 6614 | </table> |
6609 | 6615 |
|
| 6616 | +The definitions are also available on Windows. |
| 6617 | +
|
6610 | 6618 | ##### File open constants |
6611 | 6619 |
|
6612 | 6620 | The following constants are meant for use with `fs.open()`. |
@@ -6701,6 +6709,9 @@ The following constants are meant for use with `fs.open()`. |
6701 | 6709 | </tr> |
6702 | 6710 | </table> |
6703 | 6711 |
|
| 6712 | +On Windows, only `O_APPEND`, `O_CREAT`, `O_EXCL`, `O_RDONLY`, `O_RDWR`, |
| 6713 | +`O_TRUNC`, `O_WRONLY` and `UV_FS_O_FILEMAP` are available. |
| 6714 | +
|
6704 | 6715 | ##### File type constants |
6705 | 6716 |
|
6706 | 6717 | The following constants are meant for use with the {fs.Stats} object's |
@@ -6745,6 +6756,9 @@ The following constants are meant for use with the {fs.Stats} object's |
6745 | 6756 | </tr> |
6746 | 6757 | </table> |
6747 | 6758 |
|
| 6759 | +On Windows, only `S_IFCHR`, `S_IFDIR`, `S_IFLNK`, `S_IFMT`, and `S_IFREG`, |
| 6760 | +are available. |
| 6761 | +
|
6748 | 6762 | ##### File mode constants |
6749 | 6763 |
|
6750 | 6764 | The following constants are meant for use with the {fs.Stats} object's |
@@ -6805,6 +6819,8 @@ The following constants are meant for use with the {fs.Stats} object's |
6805 | 6819 | </tr> |
6806 | 6820 | </table> |
6807 | 6821 |
|
| 6822 | +On Windows, only `S_IRUSR` and `S_IWUSR` are available. |
| 6823 | +
|
6808 | 6824 | ## Notes |
6809 | 6825 |
|
6810 | 6826 | ### Ordering of callback and promise-based operations |
|