about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorWeihang Lo <me@weihanglo.tw>2025-09-06 02:30:50 -0600
committerWeihang Lo <me@weihanglo.tw>2025-09-07 00:05:13 -0400
commit01edb24d3ced043116a00bc45cc6c459b4ba9638 (patch)
tree2dbe8f5a98be283209e3d1948f4b7fe259c99d8b /compiler/rustc_mir_transform/src
parent0d0f4eac8b98133e5da6d3604d86a8f3b5a67844 (diff)
downloadrust-01edb24d3ced043116a00bc45cc6c459b4ba9638.tar.gz
rust-01edb24d3ced043116a00bc45cc6c459b4ba9638.zip
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
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions