@@ -2473,16 +2473,15 @@ pub fn remove_dir<P: AsRef>(path: P) -> io::Result<()> { |
|
|
2473 |
2473 |
/// # Platform-specific behavior |
2474 |
2474 |
/// |
2475 |
2475 |
/// This function currently corresponds to `openat`, `fdopendir`, `unlinkat` and `lstat` functions |
2476 |
|
-/// on Unix (except for macOS before version 10.10 and REDOX) and the `CreateFileW`, |
2477 |
|
-/// `GetFileInformationByHandleEx`, `SetFileInformationByHandle`, and `NtCreateFile` functions on |
2478 |
|
-/// Windows. Note that, this [may change in the future][changes]. |
|
2476 |
+/// on Unix (except for REDOX) and the `CreateFileW`, `GetFileInformationByHandleEx`, |
|
2477 |
+/// `SetFileInformationByHandle`, and `NtCreateFile` functions on Windows. Note that, this |
|
2478 |
+/// [may change in the future][changes]. |
2479 |
2479 |
/// |
2480 |
2480 |
/// [changes]: io#platform-specific-behavior |
2481 |
2481 |
/// |
2482 |
|
-/// On macOS before version 10.10 and REDOX, as well as when running in Miri for any target, this |
2483 |
|
-/// function is not protected against time-of-check to time-of-use (TOCTOU) race conditions, and |
2484 |
|
-/// should not be used in security-sensitive code on those platforms. All other platforms are |
2485 |
|
-/// protected. |
|
2482 |
+/// On REDOX, as well as when running in Miri for any target, this function is not protected against |
|
2483 |
+/// time-of-check to time-of-use (TOCTOU) race conditions, and should not be used in |
|
2484 |
+/// security-sensitive code on those platforms. All other platforms are protected. |
2486 |
2485 |
/// |
2487 |
2486 |
/// # Errors |
2488 |
2487 |
/// |