Skip to content

Make VxWorks shims unsafe#3727

Merged
JohnTitor merged 1 commit into
rust-lang:mainfrom
jdygert-spok:patch-1
Jun 15, 2024
Merged

Make VxWorks shims unsafe#3727
JohnTitor merged 1 commit into
rust-lang:mainfrom
jdygert-spok:patch-1

Conversation

@jdygert-spok

Copy link
Copy Markdown
Contributor

pread and pwrite don't technically need to be unsafe, but it is consistent and more convenient for avoiding the unused_unsafe warning across targets.

posix_memalign must be unsafe since it writes to the ptr arg memptr.

This is a breaking change.

`pread` and `pwrite` don't technically need to be `unsafe`, but it is consistent and more convenient for avoiding the `unused_unsafe` warning across targets.
@rustbot

rustbot commented May 28, 2024

Copy link
Copy Markdown
Collaborator

r? @JohnTitor

rustbot has assigned @JohnTitor.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@JohnTitor
JohnTitor added this pull request to the merge queue Jun 15, 2024
Merged via the queue into rust-lang:main with commit 4b7471e Jun 15, 2024
@tgross35 tgross35 added the stable-nominated This PR should be considered for cherry-pick to libc's stable release branch label Jul 20, 2026
This was referenced Jul 20, 2026
tgross35 pushed a commit to tgross35/rust-libc that referenced this pull request Jul 20, 2026
`pread` and `pwrite` don't technically need to be `unsafe`, but it is
consistent and more convenient for avoiding the `unused_unsafe` warning
across targets.

(backport <rust-lang#3727>)
(cherry picked from commit 69178f7)
@tgross35 tgross35 added stable-applied This PR has been cherry-picked to libc's stable release branch and removed stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Jul 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-review stable-applied This PR has been cherry-picked to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants