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 3232//! other code using that file descriptor.
3333//! This list doesn't include `mmap`, since `mmap` does do a proper borrow of
3434//! 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
3838//! mentioned earlier, `BorrowedFd` values may be used in APIs which provide
3939//! safe access to any system call. Consequently, code using `mmap` and
4040//! presenting a safe API must take full responsibility for ensuring that safe
You can’t perform that action at this time.
0 commit comments