Uh oh!
There was an error while loading. Please reload this page.
Implement fs::get_path for FreeBSD. - #98211
Conversation
rust-highfive
commented
Jun 17, 2022
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
rust-highfive
commented
Jun 17, 2022
(rust-highfive has picked a reviewer for you, use r? to override) |
Uh oh!
There was an error while loading. Please reload this page.
JohnCSimon
commented
Jul 23, 2022
Ping from triage: FYI: when a PR is ready for review, send a message containing |
devnexen
commented
Jul 24, 2022
@rustbot ready |
Mark-Simulacrum
commented
Jul 24, 2022
Hm, so looking at how large that struct is, I'm now wondering if we should be placing it on the heap -- it seems like a kilobyte+ is a pretty big thing to stick onto the stack. I think our stacks are typically a few megabytes, and this function can't see any recursion, but the heap allocation is also likely to be pretty cheap when we're making a syscall anyway. It looks like on other platforms the get_path helpers all use a heap allocation, so adding one here won't be too odd hopefully. |
This comment was marked as resolved.
This comment was marked as resolved.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
devnexen
commented
Jul 24, 2022
@rustbot ready |
Mark-Simulacrum
commented
Jul 24, 2022
@bors r+ |
bors
commented
Jul 24, 2022
…imulacrum Implement `fs::get_path` for FreeBSD. Using `F_KINFO` fcntl flag, the kf_structsize field needs to be set beforehand for that effect.
JohnTitor
commented
Jul 25, 2022
Failed in rollup: #99726 (comment) |
devnexen
commented
Jul 25, 2022
oh I forgot it was only amd64 arch... |
Using `F_KINFO` fcntl flag, the kf_structsize field needs to be set beforehand for that effect.
Mark-Simulacrum
commented
Jul 25, 2022
@bors r+ |
bors
commented
Jul 25, 2022
Rollup of 7 pull requests Successful merges: - rust-lang#98211 (Implement `fs::get_path` for FreeBSD.) - rust-lang#99353 (Slightly improve mismatched GAT where clause error) - rust-lang#99593 (Suggest removing the tuple struct field for the unwrapped value) - rust-lang#99615 (Remove some explicit `self.infcx` for `FnCtxt`, which already derefs into `InferCtxt`) - rust-lang#99711 (Remove reachable coverage without counters) - rust-lang#99718 (Avoid `&str`/`Symbol` to `String` conversions) - rust-lang#99720 (Sync rustc_codegen_cranelift) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 7 pull requests Successful merges: - rust-lang#98211 (Implement `fs::get_path` for FreeBSD.) - rust-lang#99353 (Slightly improve mismatched GAT where clause error) - rust-lang#99593 (Suggest removing the tuple struct field for the unwrapped value) - rust-lang#99615 (Remove some explicit `self.infcx` for `FnCtxt`, which already derefs into `InferCtxt`) - rust-lang#99711 (Remove reachable coverage without counters) - rust-lang#99718 (Avoid `&str`/`Symbol` to `String` conversions) - rust-lang#99720 (Sync rustc_codegen_cranelift) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Using
F_KINFOfcntl flag, the kf_structsize fieldneeds to be set beforehand for that effect.