Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add safety comments for mmap etc. #1188

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Add safety comments for mmap etc. #1188

merged 3 commits into from
Oct 18, 2024

Conversation

sunfishcode
Copy link
Member

Add proper safety comments for mmap and related functions. Many of the tricky things around mmap are about handing out Rust references to mapped memory, and that technically isn't rustix's responsibility to worry about, so these safety comments can be pretty simple.

And, several other miscellaneous documentation and comment cleanups.

Add proper safety comments for `mmap` and related functions. Many of
the tricky things around `mmap` are about handing out Rust references
to mapped memory, and that technically isn't rustix's responsibility
to worry about, so these safety comments can be pretty simple.

And, several other miscellaneous documentation and comment cleanups.
@sunfishcode sunfishcode merged commit ec96121 into main Oct 18, 2024
45 checks passed
@sunfishcode sunfishcode deleted the sunfishcode/docs branch October 18, 2024 15:20
sunfishcode added a commit that referenced this pull request Oct 27, 2024
* Add safety comments for `mmap` etc.

Add proper safety comments for `mmap` and related functions. Many of
the tricky things around `mmap` are about handing out Rust references
to mapped memory, and that technically isn't rustix's responsibility
to worry about, so these safety comments can be pretty simple.

And, several other miscellaneous documentation and comment cleanups.

* Document the new safety precondition for `split_init`.
sunfishcode added a commit that referenced this pull request Oct 27, 2024
* Add safety comments for `mmap` etc.

Add proper safety comments for `mmap` and related functions. Many of
the tricky things around `mmap` are about handing out Rust references
to mapped memory, and that technically isn't rustix's responsibility
to worry about, so these safety comments can be pretty simple.

And, several other miscellaneous documentation and comment cleanups.

* Document the new safety precondition for `split_init`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant