-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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 missing PS Vita definitions, fix some unused ones #3284
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @JohnTitor (or someone else) soon. Please see the contribution instructions for more information. Namely, in order to ensure the minimum review times lag, PR authors and assigned reviewers should ensure that the review label (
|
src/unix/newlib/mod.rs
Outdated
pub const TCP_NODELAY: ::c_int = 8193; | ||
pub const TCP_MAXSEG: ::c_int = 8194; | ||
cfg_if! { | ||
if #[cfg(target_os = "horizon")] { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be vita, horizon is for 3ds/switch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked every const/struct/function, and apart from horizon macro everything looks correct
TYSM @nikarh, just fixed that cfg |
@bors r+ |
Add missing PS Vita definitions, fix some unused ones This PR improves vita's newlib support for std by adding some missing definitions and fixing some duplicated ones (e.g. `EAI_NONAME` from `src/unix/newlib/vita/mod.rs` was not being used as it was already defined on `src/unix/newlib/mod.rs`) Previous work: #3209 #3255 cc `@nikarh`
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
👀 Test was successful, but fast-forwarding failed: 422 Update is not a fast forward |
Looks like rust-lang/homu#75, should we just retry? |
Sure, @bors retry |
Is this the PR that is completely halting bors (across RA, miri, libc, ...) right now? Could someone try closing and re-opening it? |
Bummer, this wasn't it seems. :(
We'll have to wait for infra then I guess.
Cc rust-lang/homu#191
|
src/unix/newlib/mod.rs
Outdated
if #[cfg(target_os = "vita")] { | ||
pub const EAI_FAMILY: ::c_int = -6; | ||
pub const EAI_MEMORY: ::c_int = -10; | ||
pub const EAI_NONAME: ::c_int = -2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ordering here doesn't really make sense after this patch... maybe this could be pub use vita::{EAI_NONAME, ...};
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea, I'll move those back to vita/mod.rs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did it
We can't add pub use
as it goes against the library styling (pub use must go after all constants), but there's already a pub use self::vita::*
at the end.
@rustbot review |
@JohnTitor can I get a new review on this one? Rustbot had bugged and then I did a small change (@riking's suggestion) |
Disabled socketpair for Vita There is no `socketpair` syscall in Vita newlib. This is reflected in a rust-lang/libc#3284, in which this method is removed for vita target. Also, we would need the fixes from the abovementioned PR for sockets in std (previously we had some incorrect constant values), but that can be done separately when rust-lang/libc#3284 is reviewed, merged, and released.
Rollup merge of rust-lang#115816 - vita-rust:vita, r=cuviper Disabled socketpair for Vita There is no `socketpair` syscall in Vita newlib. This is reflected in a rust-lang/libc#3284, in which this method is removed for vita target. Also, we would need the fixes from the abovementioned PR for sockets in std (previously we had some incorrect constant values), but that can be done separately when rust-lang/libc#3284 is reviewed, merged, and released.
Maybe we need to retry? Looks like it failed to start one BSD test on cirrus |
Seems so, @bors retry |
Add missing PS Vita definitions, fix some unused ones This PR improves vita's newlib support for std by adding some missing definitions and fixing some duplicated ones (e.g. `EAI_NONAME` from `src/unix/newlib/vita/mod.rs` was not being used as it was already defined on `src/unix/newlib/mod.rs`) Previous work: #3209 #3255 cc `@nikarh`
💔 Test failed - checks-actions |
Combination of 10 commits: * Add missing PS Vita definitions, fix some unused ones * Fix cfg's target_os * Move conflicting EAI_* definitions back to vita-specific file * Remove out-of-order pub uses * Added padding to dirent and fixed clockid_t * Use repr(align()) instead of zero field * Fixed sockaddr structs * Fixup * socketpair is not available on vita * Lint Co-authored-by: Nikolay Arhipov <n@arhipov.net>
The problem was that Should I squash the fix to the main commit? |
If commits are too many, it'd be great to be squashed, but 2 commits are fine by me, thank you! |
☀️ Test successful - checks-actions, checks-cirrus-freebsd-12, checks-cirrus-freebsd-13, checks-cirrus-freebsd-14 |
Update crate version to 0.2.149 Contains fixes for net structs/calls for Vita target - #3284 and #3366. Required for rust-lang/socket2/pull/465
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [libc](https://github.com/rust-lang/libc) | dependencies | patch | `0.2.148` -> `0.2.149` | --- ### Release Notes <details> <summary>rust-lang/libc (libc)</summary> ### [`v0.2.149`](https://github.com/rust-lang/libc/releases/tag/0.2.149) [Compare Source](https://github.com/rust-lang/libc/compare/0.2.148...0.2.149) #### What's Changed - libc 0.2.148 by [@​joshtriplett](https://github.com/joshtriplett) in [https://github.com/rust-lang/libc/pull/3351](https://github.com/rust-lang/libc/pull/3351) - update libc-test and its libc dependency to 0.2.148 by [@​chenx97](https://github.com/chenx97) in [https://github.com/rust-lang/libc/pull/3314](https://github.com/rust-lang/libc/pull/3314) - Disable 1.13 CI by [@​JohnTitor](https://github.com/JohnTitor) in [https://github.com/rust-lang/libc/pull/3358](https://github.com/rust-lang/libc/pull/3358) - Add teeos libc by [@​Sword-Destiny](https://github.com/Sword-Destiny) in [https://github.com/rust-lang/libc/pull/3333](https://github.com/rust-lang/libc/pull/3333) - Added SIOCSIFNAME by [@​Brijeshkrishna](https://github.com/Brijeshkrishna) in [https://github.com/rust-lang/libc/pull/3354](https://github.com/rust-lang/libc/pull/3354) - copyfile apple api update by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3346](https://github.com/rust-lang/libc/pull/3346) - Hermit updates by [@​mkroening](https://github.com/mkroening) in [https://github.com/rust-lang/libc/pull/3348](https://github.com/rust-lang/libc/pull/3348) - Add the LoongArch64 HWCAP values by [@​heiher](https://github.com/heiher) in [https://github.com/rust-lang/libc/pull/3344](https://github.com/rust-lang/libc/pull/3344) - Add F_PUNCHHOLE and fpunchhole_t by [@​anacrolix](https://github.com/anacrolix) in [https://github.com/rust-lang/libc/pull/3337](https://github.com/rust-lang/libc/pull/3337) - Fix compatibility with Emscripten >= 3.1.44 by [@​kleisauke](https://github.com/kleisauke) in [https://github.com/rust-lang/libc/pull/3308](https://github.com/rust-lang/libc/pull/3308) - freebsd adding few mmap constants related to page alignment by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3326](https://github.com/rust-lang/libc/pull/3326) - Redox pthreads by [@​4lDO2](https://github.com/4lDO2) in [https://github.com/rust-lang/libc/pull/3347](https://github.com/rust-lang/libc/pull/3347) - linux MADV_COLLAPSE addition by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3340](https://github.com/rust-lang/libc/pull/3340) - android adding few more pthread api calls. by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3288](https://github.com/rust-lang/libc/pull/3288) - Declare `pthread_attr_setguardsize` and `pthread_attr_getstacksize`. by [@​sunfishcode](https://github.com/sunfishcode) in [https://github.com/rust-lang/libc/pull/3330](https://github.com/rust-lang/libc/pull/3330) - Add missing PS Vita definitions, fix some unused ones by [@​pheki](https://github.com/pheki) in [https://github.com/rust-lang/libc/pull/3284](https://github.com/rust-lang/libc/pull/3284) - Drop `armv7-apple-ios` target support by [@​JohnTitor](https://github.com/JohnTitor) in [https://github.com/rust-lang/libc/pull/3362](https://github.com/rust-lang/libc/pull/3362) - backtrace definitions and support for getmntinfo and getvfsstat by [@​0323pin](https://github.com/0323pin) in [https://github.com/rust-lang/libc/pull/3368](https://github.com/rust-lang/libc/pull/3368) - apple fcntl update. by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3365](https://github.com/rust-lang/libc/pull/3365) - Added socketpair and pipe2 for Vita target by [@​nikarh](https://github.com/nikarh) in [https://github.com/rust-lang/libc/pull/3366](https://github.com/rust-lang/libc/pull/3366) - Added additional Ethernet Protocol Ids for fuchsia by [@​w1redch4d](https://github.com/w1redch4d) in [https://github.com/rust-lang/libc/pull/3332](https://github.com/rust-lang/libc/pull/3332) - timerfd api for freebsd 14. by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3341](https://github.com/rust-lang/libc/pull/3341) - haiku adding pthread GNU part by [@​devnexen](https://github.com/devnexen) in [https://github.com/rust-lang/libc/pull/3364](https://github.com/rust-lang/libc/pull/3364) - add execveat for glibc by [@​SteveLauC](https://github.com/SteveLauC) in [https://github.com/rust-lang/libc/pull/3372](https://github.com/rust-lang/libc/pull/3372) - added support for GNU/Hurd by [@​Vtewari2311](https://github.com/Vtewari2311) in [https://github.com/rust-lang/libc/pull/3325](https://github.com/rust-lang/libc/pull/3325) - Fix apple tvos support by [@​lcruz99](https://github.com/lcruz99) in [https://github.com/rust-lang/libc/pull/3370](https://github.com/rust-lang/libc/pull/3370) - Remove deprecation from SA_ONSTACK; fix hexagon-unknown-linux-musl by [@​androm3da](https://github.com/androm3da) in [https://github.com/rust-lang/libc/pull/3335](https://github.com/rust-lang/libc/pull/3335) - feat: add close_range for glibc by [@​SteveLauC](https://github.com/SteveLauC) in [https://github.com/rust-lang/libc/pull/3373](https://github.com/rust-lang/libc/pull/3373) - Update crate version to 0.2.149 by [@​nikarh](https://github.com/nikarh) in [https://github.com/rust-lang/libc/pull/3360](https://github.com/rust-lang/libc/pull/3360) #### New Contributors - [@​Sword-Destiny](https://github.com/Sword-Destiny) made their first contribution in [https://github.com/rust-lang/libc/pull/3333](https://github.com/rust-lang/libc/pull/3333) - [@​Brijeshkrishna](https://github.com/Brijeshkrishna) made their first contribution in [https://github.com/rust-lang/libc/pull/3354](https://github.com/rust-lang/libc/pull/3354) - [@​anacrolix](https://github.com/anacrolix) made their first contribution in [https://github.com/rust-lang/libc/pull/3337](https://github.com/rust-lang/libc/pull/3337) - [@​4lDO2](https://github.com/4lDO2) made their first contribution in [https://github.com/rust-lang/libc/pull/3347](https://github.com/rust-lang/libc/pull/3347) - [@​pheki](https://github.com/pheki) made their first contribution in [https://github.com/rust-lang/libc/pull/3284](https://github.com/rust-lang/libc/pull/3284) - [@​0323pin](https://github.com/0323pin) made their first contribution in [https://github.com/rust-lang/libc/pull/3368](https://github.com/rust-lang/libc/pull/3368) - [@​w1redch4d](https://github.com/w1redch4d) made their first contribution in [https://github.com/rust-lang/libc/pull/3332](https://github.com/rust-lang/libc/pull/3332) - [@​Vtewari2311](https://github.com/Vtewari2311) made their first contribution in [https://github.com/rust-lang/libc/pull/3325](https://github.com/rust-lang/libc/pull/3325) - [@​lcruz99](https://github.com/lcruz99) made their first contribution in [https://github.com/rust-lang/libc/pull/3370](https://github.com/rust-lang/libc/pull/3370) **Full Changelog**: rust-lang/libc@0.2.148...0.2.149 </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/agbrs/agb). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4wLjMiLCJ1cGRhdGVkSW5WZXIiOiIzNy4wLjMiLCJ0YXJnZXRCcmFuY2giOiJtYXN0ZXIifQ==-->
Updated libc and doc for Vita target Doc changes: - Updated Vita target readme. The recommended approach to build artifacts for the platform now is [cargo-vita](https://crates.io/crates/cargo-vita) which wraps all the convoluted steps previously described in a yaml for `cargo-make` - Updated maintainer list for Vita target. (`@ZetaNumbers` `@pheki` please agree to be added to the list, `@amg98` please let us know if you're still planning on actively maintaining target support) Code changes: - ~Updated libc for rust-lang/libc#3284 and rust-lang/libc#3366~ (Already merged in rust-lang#116527) - In dupfd changed the flag same as for esp target, there is no CLOEXEC on Vita - Enabled `new_pair` since we've implemented `socketpair` in Vita newlib
Updated libc and doc for Vita target Doc changes: - Updated Vita target readme. The recommended approach to build artifacts for the platform now is [cargo-vita](https://crates.io/crates/cargo-vita) which wraps all the convoluted steps previously described in a yaml for `cargo-make` - Updated maintainer list for Vita target. (`@ZetaNumbers` `@pheki` please agree to be added to the list, `@amg98` please let us know if you're still planning on actively maintaining target support) Code changes: - ~Updated libc for rust-lang/libc#3284 and rust-lang/libc#3366~ (Already merged in #116527) - In dupfd changed the flag same as for esp target, there is no CLOEXEC on Vita - Enabled `new_pair` since we've implemented `socketpair` in Vita newlib
chore(deps): update compatible [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [base64](https://github.com/marshallpierce/rust-base64) | workspace.dependencies | patch | `0.21.4` -> `0.21.5` | | [cargo_metadata](https://github.com/oli-obk/cargo_metadata) | workspace.dependencies | patch | `0.18.0` -> `0.18.1` | | [clap](https://github.com/clap-rs/clap) | workspace.dependencies | patch | `4.4.6` -> `4.4.7` | | [flate2](https://github.com/rust-lang/flate2-rs) | workspace.dependencies | patch | `1.0.27` -> `1.0.28` | | [jobserver](https://github.com/alexcrichton/jobserver-rs) | workspace.dependencies | patch | `0.1.26` -> `0.1.27` | | [libc](https://github.com/rust-lang/libc) | workspace.dependencies | patch | `0.2.148` -> `0.2.149` | | [serde](https://serde.rs) ([source](https://github.com/serde-rs/serde)) | workspace.dependencies | patch | `1.0.188` -> `1.0.190` | | [serde_json](https://github.com/serde-rs/json) | workspace.dependencies | patch | `1.0.107` -> `1.0.108` | | [snapbox](https://github.com/assert-rs/trycmd/tree/main/crates/snapbox) ([source](https://github.com/assert-rs/trycmd)) | workspace.dependencies | patch | `0.4.13` -> `0.4.14` | | [syn](https://github.com/dtolnay/syn) | workspace.dependencies | patch | `2.0.37` -> `2.0.38` | | [tempfile](https://stebalien.com/projects/tempfile-rs/) ([source](https://github.com/Stebalien/tempfile)) | workspace.dependencies | patch | `3.8.0` -> `3.8.1` | | [thiserror](https://github.com/dtolnay/thiserror) | workspace.dependencies | patch | `1.0.49` -> `1.0.50` | | [toml](https://github.com/toml-rs/toml) | workspace.dependencies | patch | `0.8.2` -> `0.8.6` | | [tracing](https://tokio.rs) ([source](https://github.com/tokio-rs/tracing)) | workspace.dependencies | patch | `0.1.37` -> `0.1.40` | --- ### Release Notes <details> <summary>marshallpierce/rust-base64 (base64)</summary> ### [`v0.21.5`](https://github.com/marshallpierce/rust-base64/blob/HEAD/RELEASE-NOTES.md#0215) [Compare Source](https://github.com/marshallpierce/rust-base64/compare/v0.21.4...v0.21.5) - Add `Debug` and `Clone` impls for the general purpose Engine </details> <details> <summary>oli-obk/cargo_metadata (cargo_metadata)</summary> ### [`v0.18.1`](https://github.com/oli-obk/cargo_metadata/compare/0.18.0...0.18.1) [Compare Source](https://github.com/oli-obk/cargo_metadata/compare/0.18.0...0.18.1) </details> <details> <summary>clap-rs/clap (clap)</summary> ### [`v4.4.7`](https://github.com/clap-rs/clap/blob/HEAD/CHANGELOG.md#447---2023-10-24) [Compare Source](https://github.com/clap-rs/clap/compare/v4.4.6...v4.4.7) ##### Performance - Reduced code size </details> <details> <summary>rust-lang/flate2-rs (flate2)</summary> ### [`v1.0.28`](https://github.com/rust-lang/flate2-rs/releases/tag/1.0.28) [Compare Source](https://github.com/rust-lang/flate2-rs/compare/1.0.27...1.0.28) #### What's Changed - Use explicit Default for GzHeaderState enum by [`@​jongiddy](https://github.com/jongiddy)` in [https://github.com/rust-lang/flate2-rs/pull/371](https://github.com/rust-lang/flate2-rs/pull/371) - Fix spare capacity handling by [`@​anforowicz](https://github.com/anforowicz)` in [https://github.com/rust-lang/flate2-rs/pull/373](https://github.com/rust-lang/flate2-rs/pull/373) - Fix and unify docs of `bufread` and `read` types. by [`@​georeth](https://github.com/georeth)` in [https://github.com/rust-lang/flate2-rs/pull/375](https://github.com/rust-lang/flate2-rs/pull/375) - Reset StreamWrapper after calling mz_inflate / mz_deflate by [`@​Manishearth](https://github.com/Manishearth)` in [https://github.com/rust-lang/flate2-rs/pull/380](https://github.com/rust-lang/flate2-rs/pull/380) - prepare next patch-release by [`@​Byron](https://github.com/Byron)` in [https://github.com/rust-lang/flate2-rs/pull/378](https://github.com/rust-lang/flate2-rs/pull/378) #### New Contributors - [`@​anforowicz](https://github.com/anforowicz)` made their first contribution in [https://github.com/rust-lang/flate2-rs/pull/373](https://github.com/rust-lang/flate2-rs/pull/373) - [`@​georeth](https://github.com/georeth)` made their first contribution in [https://github.com/rust-lang/flate2-rs/pull/375](https://github.com/rust-lang/flate2-rs/pull/375) - [`@​Manishearth](https://github.com/Manishearth)` made their first contribution in [https://github.com/rust-lang/flate2-rs/pull/380](https://github.com/rust-lang/flate2-rs/pull/380) **Full Changelog**: rust-lang/flate2-rs@1.0.27...1.0.28 </details> <details> <summary>rust-lang/libc (libc)</summary> ### [`v0.2.149`](https://github.com/rust-lang/libc/releases/tag/0.2.149) [Compare Source](https://github.com/rust-lang/libc/compare/0.2.148...0.2.149) #### What's Changed - libc 0.2.148 by [`@​joshtriplett](https://github.com/joshtriplett)` in [https://github.com/rust-lang/libc/pull/3351](https://github.com/rust-lang/libc/pull/3351) - update libc-test and its libc dependency to 0.2.148 by [`@​chenx97](https://github.com/chenx97)` in [https://github.com/rust-lang/libc/pull/3314](https://github.com/rust-lang/libc/pull/3314) - Disable 1.13 CI by [`@​JohnTitor](https://github.com/JohnTitor)` in [https://github.com/rust-lang/libc/pull/3358](https://github.com/rust-lang/libc/pull/3358) - Add teeos libc by [`@​Sword-Destiny](https://github.com/Sword-Destiny)` in [https://github.com/rust-lang/libc/pull/3333](https://github.com/rust-lang/libc/pull/3333) - Added SIOCSIFNAME by [`@​Brijeshkrishna](https://github.com/Brijeshkrishna)` in [https://github.com/rust-lang/libc/pull/3354](https://github.com/rust-lang/libc/pull/3354) - copyfile apple api update by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3346](https://github.com/rust-lang/libc/pull/3346) - Hermit updates by [`@​mkroening](https://github.com/mkroening)` in [https://github.com/rust-lang/libc/pull/3348](https://github.com/rust-lang/libc/pull/3348) - Add the LoongArch64 HWCAP values by [`@​heiher](https://github.com/heiher)` in [https://github.com/rust-lang/libc/pull/3344](https://github.com/rust-lang/libc/pull/3344) - Add F_PUNCHHOLE and fpunchhole_t by [`@​anacrolix](https://github.com/anacrolix)` in [https://github.com/rust-lang/libc/pull/3337](https://github.com/rust-lang/libc/pull/3337) - Fix compatibility with Emscripten >= 3.1.44 by [`@​kleisauke](https://github.com/kleisauke)` in [https://github.com/rust-lang/libc/pull/3308](https://github.com/rust-lang/libc/pull/3308) - freebsd adding few mmap constants related to page alignment by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3326](https://github.com/rust-lang/libc/pull/3326) - Redox pthreads by [`@​4lDO2](https://github.com/4lDO2)` in [https://github.com/rust-lang/libc/pull/3347](https://github.com/rust-lang/libc/pull/3347) - linux MADV_COLLAPSE addition by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3340](https://github.com/rust-lang/libc/pull/3340) - android adding few more pthread api calls. by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3288](https://github.com/rust-lang/libc/pull/3288) - Declare `pthread_attr_setguardsize` and `pthread_attr_getstacksize`. by [`@​sunfishcode](https://github.com/sunfishcode)` in [https://github.com/rust-lang/libc/pull/3330](https://github.com/rust-lang/libc/pull/3330) - Add missing PS Vita definitions, fix some unused ones by [`@​pheki](https://github.com/pheki)` in [https://github.com/rust-lang/libc/pull/3284](https://github.com/rust-lang/libc/pull/3284) - Drop `armv7-apple-ios` target support by [`@​JohnTitor](https://github.com/JohnTitor)` in [https://github.com/rust-lang/libc/pull/3362](https://github.com/rust-lang/libc/pull/3362) - backtrace definitions and support for getmntinfo and getvfsstat by [`@​0323pin](https://github.com/0323pin)` in [https://github.com/rust-lang/libc/pull/3368](https://github.com/rust-lang/libc/pull/3368) - apple fcntl update. by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3365](https://github.com/rust-lang/libc/pull/3365) - Added socketpair and pipe2 for Vita target by [`@​nikarh](https://github.com/nikarh)` in [https://github.com/rust-lang/libc/pull/3366](https://github.com/rust-lang/libc/pull/3366) - Added additional Ethernet Protocol Ids for fuchsia by [`@​w1redch4d](https://github.com/w1redch4d)` in [https://github.com/rust-lang/libc/pull/3332](https://github.com/rust-lang/libc/pull/3332) - timerfd api for freebsd 14. by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3341](https://github.com/rust-lang/libc/pull/3341) - haiku adding pthread GNU part by [`@​devnexen](https://github.com/devnexen)` in [https://github.com/rust-lang/libc/pull/3364](https://github.com/rust-lang/libc/pull/3364) - add execveat for glibc by [`@​SteveLauC](https://github.com/SteveLauC)` in [https://github.com/rust-lang/libc/pull/3372](https://github.com/rust-lang/libc/pull/3372) - added support for GNU/Hurd by [`@​Vtewari2311](https://github.com/Vtewari2311)` in [https://github.com/rust-lang/libc/pull/3325](https://github.com/rust-lang/libc/pull/3325) - Fix apple tvos support by [`@​lcruz99](https://github.com/lcruz99)` in [https://github.com/rust-lang/libc/pull/3370](https://github.com/rust-lang/libc/pull/3370) - Remove deprecation from SA_ONSTACK; fix hexagon-unknown-linux-musl by [`@​androm3da](https://github.com/androm3da)` in [https://github.com/rust-lang/libc/pull/3335](https://github.com/rust-lang/libc/pull/3335) - feat: add close_range for glibc by [`@​SteveLauC](https://github.com/SteveLauC)` in [https://github.com/rust-lang/libc/pull/3373](https://github.com/rust-lang/libc/pull/3373) - Update crate version to 0.2.149 by [`@​nikarh](https://github.com/nikarh)` in [https://github.com/rust-lang/libc/pull/3360](https://github.com/rust-lang/libc/pull/3360) #### New Contributors - [`@​Sword-Destiny](https://github.com/Sword-Destiny)` made their first contribution in [https://github.com/rust-lang/libc/pull/3333](https://github.com/rust-lang/libc/pull/3333) - [`@​Brijeshkrishna](https://github.com/Brijeshkrishna)` made their first contribution in [https://github.com/rust-lang/libc/pull/3354](https://github.com/rust-lang/libc/pull/3354) - [`@​anacrolix](https://github.com/anacrolix)` made their first contribution in [https://github.com/rust-lang/libc/pull/3337](https://github.com/rust-lang/libc/pull/3337) - [`@​4lDO2](https://github.com/4lDO2)` made their first contribution in [https://github.com/rust-lang/libc/pull/3347](https://github.com/rust-lang/libc/pull/3347) - [`@​pheki](https://github.com/pheki)` made their first contribution in [https://github.com/rust-lang/libc/pull/3284](https://github.com/rust-lang/libc/pull/3284) - [`@​0323pin](https://github.com/0323pin)` made their first contribution in [https://github.com/rust-lang/libc/pull/3368](https://github.com/rust-lang/libc/pull/3368) - [`@​w1redch4d](https://github.com/w1redch4d)` made their first contribution in [https://github.com/rust-lang/libc/pull/3332](https://github.com/rust-lang/libc/pull/3332) - [`@​Vtewari2311](https://github.com/Vtewari2311)` made their first contribution in [https://github.com/rust-lang/libc/pull/3325](https://github.com/rust-lang/libc/pull/3325) - [`@​lcruz99](https://github.com/lcruz99)` made their first contribution in [https://github.com/rust-lang/libc/pull/3370](https://github.com/rust-lang/libc/pull/3370) **Full Changelog**: rust-lang/libc@0.2.148...0.2.149 </details> <details> <summary>serde-rs/serde (serde)</summary> ### [`v1.0.190`](https://github.com/serde-rs/serde/releases/tag/v1.0.190) [Compare Source](https://github.com/serde-rs/serde/compare/v1.0.189...v1.0.190) - Preserve NaN sign when deserializing f32 from f64 or vice versa ([#​2637](https://github.com/serde-rs/serde/issues/2637)) ### [`v1.0.189`](https://github.com/serde-rs/serde/releases/tag/v1.0.189) [Compare Source](https://github.com/serde-rs/serde/compare/v1.0.188...v1.0.189) - Fix "cannot infer type" error when internally tagged enum contains untagged variant ([#​2613](https://github.com/serde-rs/serde/issues/2613), thanks [`@​ahl](https://github.com/ahl))` </details> <details> <summary>serde-rs/json (serde_json)</summary> ### [`v1.0.108`](https://github.com/serde-rs/json/releases/tag/v1.0.108) [Compare Source](https://github.com/serde-rs/json/compare/v1.0.107...v1.0.108) - Documentation improvements ([#​1075](https://github.com/serde-rs/json/issues/1075), [#​1081](https://github.com/serde-rs/json/issues/1081), [#​1082](https://github.com/serde-rs/json/issues/1082), thanks [`@​dimo414](https://github.com/dimo414)` and [`@​fritzrehde](https://github.com/fritzrehde))` </details> <details> <summary>assert-rs/trycmd (snapbox)</summary> ### [`v0.4.14`](https://github.com/assert-rs/trycmd/compare/snapbox-v0.4.13...snapbox-v0.4.14) [Compare Source](https://github.com/assert-rs/trycmd/compare/snapbox-v0.4.13...snapbox-v0.4.14) </details> <details> <summary>dtolnay/syn (syn)</summary> ### [`v2.0.38`](https://github.com/dtolnay/syn/releases/tag/2.0.38) [Compare Source](https://github.com/dtolnay/syn/compare/2.0.37...2.0.38) - Fix *"method 'peek' has an incompatible type for trait"* error when defining `bool` as a custom keyword ([#​1518](https://github.com/dtolnay/syn/issues/1518), thanks [`@​Vanille-N](https://github.com/Vanille-N))` </details> <details> <summary>Stebalien/tempfile (tempfile)</summary> ### [`v3.8.1`](https://github.com/Stebalien/tempfile/blob/HEAD/CHANGELOG.md#381) - Update rustix to fix a potential panic on `persist_noclobber` on android. - Update redox_syscall to 0.4 (on redox). - Fix some docs typos. </details> <details> <summary>dtolnay/thiserror (thiserror)</summary> ### [`v1.0.50`](https://github.com/dtolnay/thiserror/releases/tag/1.0.50) [Compare Source](https://github.com/dtolnay/thiserror/compare/1.0.49...1.0.50) - Improve diagnostic when a #\[source], #\[from], or #\[transparant] attribute refers to a type that has no std::error::Error impl ([#​258](https://github.com/dtolnay/thiserror/issues/258), thanks [`@​de-vri-es](https://github.com/de-vri-es))` </details> <details> <summary>toml-rs/toml (toml)</summary> ### [`v0.8.6`](https://github.com/toml-rs/toml/compare/toml-v0.8.5...toml-v0.8.6) [Compare Source](https://github.com/toml-rs/toml/compare/toml-v0.8.5...toml-v0.8.6) ### [`v0.8.5`](https://github.com/toml-rs/toml/compare/toml-v0.8.4...toml-v0.8.5) [Compare Source](https://github.com/toml-rs/toml/compare/toml-v0.8.4...toml-v0.8.5) ### [`v0.8.4`](https://github.com/toml-rs/toml/compare/toml-v0.8.3...toml-v0.8.4) [Compare Source](https://github.com/toml-rs/toml/compare/toml-v0.8.3...toml-v0.8.4) ### [`v0.8.3`](https://github.com/toml-rs/toml/compare/toml-v0.8.2...toml-v0.8.3) [Compare Source](https://github.com/toml-rs/toml/compare/toml-v0.8.2...toml-v0.8.3) </details> <details> <summary>tokio-rs/tracing (tracing)</summary> ### [`v0.1.40`](https://github.com/tokio-rs/tracing/releases/tag/tracing-0.1.40): tracing 0.1.40 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-0.1.39...tracing-0.1.40) This release fixes a potential stack use-after-free in the `Instrument::into_inner` method. Only uses of this method are affected by this bug. ##### Fixed - Use `mem::ManuallyDrop` instead of `mem::forget` in `Instrument::into_inner` ([#​2765]) [#​2765]: https://github.com/tokio-rs/tracing/pull/2765 Thanks to [`@​cramertj](https://github.com/cramertj)` and [`@​manishearth](https://github.com/manishearth)` for finding and fixing this issue! ### [`v0.1.39`](https://github.com/tokio-rs/tracing/releases/tag/tracing-0.1.39): tracing 0.1.39 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-0.1.38...tracing-0.1.39) This release adds several additional features to the `tracing` macros. In addition, it updates the `tracing-core` dependency to [v0.1.32][core-0.1.32] and the `tracing-attributes` dependency to [v0.1.27][attrs-0.1.27]. ##### Added - Allow constant field names in macros ([#​2617]) - Allow setting event names in macros ([#​2699]) - **core**: Allow `ValueSet`s of any length ([#​2508]) ##### Changed - `tracing-attributes`: updated to [0.1.27][attrs-0.1.27] - `tracing-core`: updated to [0.1.32][core-0.1.32] - **attributes**: Bump minimum version of proc-macro2 to 1.0.60 ([#​2732]) - **attributes**: Generate less dead code for async block return type hint ([#​2709]) ##### Fixed - Use fully qualified names in macros for items exported from std prelude ([#​2621], [#​2757]) - **attributes**: Allow \[`clippy::let_with_type_underscore`] in macro-generated code (\[[#​2609](https://github.com/tokio-rs/tracing/issues/2609)]) - **attributes**: Allow `unknown_lints` in macro-generated code ([#​2626]) - **attributes**: Fix a compilation error in `#[instrument]` when the `"log"` feature is enabled ([#​2599]) ##### Documented - Add `axum-insights` to relevant crates. ([#​2713]) - Fix link to RAI pattern crate documentation (\[[#​2612](https://github.com/tokio-rs/tracing/issues/2612)]) - Fix docs typos and warnings ([#​2581]) - Add `clippy-tracing` to related crates ([#​2628]) - Add `tracing-cloudwatch` to related crates ([#​2667]) - Fix deadlink to `tracing-etw` repo ([#​2602]) [#​2617]: https://github.com/tokio-rs/tracing/pull/2617 [#​2699]: https://github.com/tokio-rs/tracing/pull/2699 [#​2508]: https://github.com/tokio-rs/tracing/pull/2508 [#​2621]: https://github.com/tokio-rs/tracing/pull/2621 [#​2713]: https://github.com/tokio-rs/tracing/pull/2713 [#​2581]: https://github.com/tokio-rs/tracing/pull/2581 [#​2628]: https://github.com/tokio-rs/tracing/pull/2628 [#​2667]: https://github.com/tokio-rs/tracing/pull/2667 [#​2602]: https://github.com/tokio-rs/tracing/pull/2602 [#​2626]: https://github.com/tokio-rs/tracing/pull/2626 [#​2757]: https://github.com/tokio-rs/tracing/pull/2757 [#​2732]: https://github.com/tokio-rs/tracing/pull/2732 [#​2709]: https://github.com/tokio-rs/tracing/pull/2709 [#​2599]: https://github.com/tokio-rs/tracing/pull/2599 [`let_with_type_underscore`]: http://rust-lang.github.io/rust-clippy/rust-1.70.0/index.html#let_with_type_underscore [attrs-0.1.27]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.27 [core-0.1.32]: https://github.com/tokio-rs/tracing/releases/tag/tracing-core-0.1.32 ### [`v0.1.38`](https://github.com/tokio-rs/tracing/releases/tag/tracing-0.1.38): tracing 0.1.38 [Compare Source](https://github.com/tokio-rs/tracing/compare/tracing-0.1.37...tracing-0.1.38) This `tracing` release changes the `Drop` implementation for `Instrumented` `Future`s so that the attached `Span` is entered when dropping the `Future`. This means that events emitted by the `Future`'s `Drop` implementation will now be recorded within its `Span`. It also adds `#[inline]` hints to methods called in the `event!` macro's expansion, for an improvement in both binary size and performance. Additionally, this release updates the `tracing-attributes` dependency to [v0.1.24][attrs-0.1.24], which updates the [`syn`][syn] dependency to v2.x.x. `tracing-attributes` v0.1.24 also includes improvements to the `#[instrument]` macro; see [the `tracing-attributes` 0.1.24 release notes][attrs-0.1.24] for details. ##### Added - `Instrumented` futures will now enter the attached `Span` in their `Drop` implementation, allowing events emitted when dropping the future to occur within the span ([#​2562](https://github.com/tokio-rs/tracing/issues/2562)) - `#[inline]` attributes for methods called by the `event!` macros, making generated code smaller ([#​2555](https://github.com/tokio-rs/tracing/issues/2555)) - **attributes**: `level` argument to `#[instrument(err)]` and `#[instrument(ret)]` to override the level of the generated return value event ([#​2335](https://github.com/tokio-rs/tracing/issues/2335)) - **attributes**: Improved compiler error message when `#[instrument]` is added to a `const fn` ([#​2418](https://github.com/tokio-rs/tracing/issues/2418)) ##### Changed - `tracing-attributes`: updated to [0.1.24][attrs-0.1.24] - Removed unneeded `cfg-if` dependency ([#​2553](https://github.com/tokio-rs/tracing/issues/2553)) - **attributes**: Updated [`syn`][syn] dependency to 2.0 ([#​2516](https://github.com/tokio-rs/tracing/issues/2516)) ##### Fixed - **attributes**: Fix `clippy::unreachable` warnings in `#[instrument]`-generated code ([#​2356](https://github.com/tokio-rs/tracing/issues/2356)) - **attributes**: Removed unused "visit" feature flag from `syn` dependency ([#​2530](https://github.com/tokio-rs/tracing/issues/2530)) ##### Documented - **attributes**: Documented default level for `#[instrument(err)]` ([#​2433](https://github.com/tokio-rs/tracing/issues/2433)) - **attributes**: Improved documentation for levels in `#[instrument]` ([#​2350](https://github.com/tokio-rs/tracing/issues/2350)) Thanks to [`@​nitnelave](https://github.com/nitnelave),` [`@​jsgf](https://github.com/jsgf),` [`@​Abhicodes-crypto](https://github.com/Abhicodes-crypto),` [`@​LukeMathWalker](https://github.com/LukeMathWalker),` [`@​andrewpollack](https://github.com/andrewpollack),` [`@​quad](https://github.com/quad),` [`@​klensy](https://github.com/klensy),` [`@​davidpdrsn](https://github.com/davidpdrsn),` [`@​dbidwell94](https://github.com/dbidwell94),` [`@​ldm0](https://github.com/ldm0),` [`@​NobodyXu](https://github.com/NobodyXu),` [`@​ilsv](https://github.com/ilsv),` and [`@​daxpedda](https://github.com/daxpedda)` for contributing to this release! [`syn`]: https://crates.io/crates/syn [attrs-0.1.24]: https://github.com/tokio-rs/tracing/releases/tag/tracing-attributes-0.1.24 </details> --- ### Configuration 📅 **Schedule**: Branch creation - "before 5am on the first day of the month" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/rust-lang/cargo). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMS41IiwidXBkYXRlZEluVmVyIjoiMzcuMzEuNSIsInRhcmdldEJyYW5jaCI6Im1hc3RlciJ9-->
This PR improves vita's newlib support for std by adding some missing definitions and fixing some duplicated ones (e.g.
EAI_NONAME
fromsrc/unix/newlib/vita/mod.rs
was not being used as it was already defined onsrc/unix/newlib/mod.rs
)Previous work: #3209 #3255
cc @nikarh