about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorMatthias Krüger <476013+matthiaskrgr@users.noreply.github.com>2025-09-07 20:02:28 +0200
committerGitHub <noreply@github.com>2025-09-07 20:02:28 +0200
commite4e4829579440fc6739ee027eb0fe0a308675137 (patch)
tree2c8f1a86c73842540e375b08553cb50832dac1ed /compiler/rustc_mir_transform/src
parent92bad93f06dc25a5370bbd85cf7e43160a03d80b (diff)
parent01edb24d3ced043116a00bc45cc6c459b4ba9638 (diff)
downloadrust-e4e4829579440fc6739ee027eb0fe0a308675137.tar.gz
rust-e4e4829579440fc6739ee027eb0fe0a308675137.zip
Rollup merge of #146269 - weihanglo:solaris-flock, r=Mark-Simulacrum
feat(std): emulate flock for solaris via fcntl

Upstream Solaris flock emulation to libstd from cargo.

This is borrowed from
https://github.com/rust-lang/cargo/blob/3b379fcc541b39321a7758552d37e5e0cc4277b9/src/cargo/util/flock.rs#L502-L536 which was implemented by an Oracle employee.
The code has been in cargo since 2022-12.

Python's `fcntl.flock` emulates like this as well: https://github.com/python/cpython/blob/c919d02edecfe9d75fe374756fb8aa1db8d95f55/Modules/fcntlmodule.c#L337-L400

We did the same thing in
https://github.com/rust-lang/rust/blob/0d0f4eac8b98133e5da6d3604d86a8f3b5a67844/compiler/rustc_data_structures/src/flock/unix.rs#L13-L39

However, should we just always falls back to fcntl for all Unix, instead of "unsupported"?

try-job: `*-solaris`
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions