File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
library/std/src/os/unix/io Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 32
32
//! other code using that file descriptor.
33
33
//! This list doesn't include `mmap`, since `mmap` does do a proper borrow of
34
34
//! its file descriptor argument. That said, `mmap` is unsafe for other
35
- //! reasons: it operates on raw pointers, and it has undefined behavior if the
36
- //! underlying storage is mutated. Mutations may come from other processes, or
37
- //! from the same process if the API provides `BorrowedFd` access, since as
35
+ //! reasons: it operates on raw pointers, and it can have undefined behavior if
36
+ //! the underlying storage is mutated. Mutations may come from other processes,
37
+ //! or from the same process if the API provides `BorrowedFd` access, since as
38
38
//! mentioned earlier, `BorrowedFd` values may be used in APIs which provide
39
39
//! safe access to any system call. Consequently, code using `mmap` and
40
40
//! presenting a safe API must take full responsibility for ensuring that safe
You can’t perform that action at this time.
0 commit comments