Repository navigation
std: fix positioned read/write on VxWorks - #166395
Merged
Merged
Conversation
Collaborator
|
r? @JohnTitor rustbot has assigned @JohnTitor. Use Why was this reviewer chosen?The reviewer was selected based on:
|
Member
|
Sure. @bors r+ rollup |
Contributor
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
Rollup of 11 pull requests Successful merges: - #165769 (Fix invalid instantiation of fake intrinsic bodies) - #166374 (Undo accidental duplication checking for attributes on macro calls) - #166386 (Replace manual `AttributeParser` construction by `parse_limited_all`) - #162565 (Add `c_buffer_length` lint helper) - #166096 (llvm-wrapper: Pass more arguments to PreCodeGenCallback) - #166395 (std: fix positioned read/write on VxWorks) - #166404 (Change `ChildExt::kill_process_group` to be `&self`) - #166405 (Check for errors before encoding metadata) - #166412 (std: Fix locking test on GNU/Hurd) - #166413 (std: Fix symlink chmod test on GNU/Hurd) - #166421 (core: Stabilize `float_bits_const`)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 24, 2026
Rollup merge of #166395 - joboet:vxworks_pio, r=workingjubilee std: fix positioned read/write on VxWorks #160031 fixed an import error on VxWorks by shimming `pread`/`pwrite`. The added shims unconditionally returned -1, indicating an error, but failed to set `errno` to something like `ENOSYS`. This is problematic because it means the indicated error condition will be the value of whatever `errno` was last set to. A function like `write_all_at` that retries on `EINTR` might therefore loop indefinitely. This PR removes the shims and instead returns an `UNSUPPORTED_PLATFORM` error – I think that makes it clearer that VxWorks does not define these functions at all. CC @Darksonn @JohnTitor
flip1995
pushed a commit
to flip1995/rust-clippy
that referenced
this pull request
Nov 26, 2026
Rollup of 11 pull requests Successful merges: - rust-lang/rust#165769 (Fix invalid instantiation of fake intrinsic bodies) - rust-lang/rust#166374 (Undo accidental duplication checking for attributes on macro calls) - rust-lang/rust#166386 (Replace manual `AttributeParser` construction by `parse_limited_all`) - rust-lang/rust#162565 (Add `c_buffer_length` lint helper) - rust-lang/rust#166096 (llvm-wrapper: Pass more arguments to PreCodeGenCallback) - rust-lang/rust#166395 (std: fix positioned read/write on VxWorks) - rust-lang/rust#166404 (Change `ChildExt::kill_process_group` to be `&self`) - rust-lang/rust#166405 (Check for errors before encoding metadata) - rust-lang/rust#166412 (std: Fix locking test on GNU/Hurd) - rust-lang/rust#166413 (std: Fix symlink chmod test on GNU/Hurd) - rust-lang/rust#166421 (core: Stabilize `float_bits_const`)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
#160031 fixed an import error on VxWorks by shimming
pread/pwrite. The added shims unconditionally returned -1, indicating an error, but failed to seterrnoto something likeENOSYS. This is problematic because it means the indicated error condition will be the value of whatevererrnowas last set to. A function likewrite_all_atthat retries onEINTRmight therefore loop indefinitely.This PR removes the shims and instead returns an
UNSUPPORTED_PLATFORMerror – I think that makes it clearer that VxWorks does not define these functions at all.CC @Darksonn @JohnTitor