rust/library/std
Weihang Lo 01edb24d3c
feat(std): emulate flock for solaris via fcntl
Upstream Solaris flock emulation to libstd from cargo.

This is borrowed from
3b379fcc54/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:
c919d02ede/Modules/fcntlmodule.c (L337-L400)

We did the same thing in
0d0f4eac8b/compiler/rustc_data_structures/src/flock/unix.rs (L13-L39)
2025-09-07 00:05:13 -04:00
..
benches Fix import in bench for wasm 2025-02-12 14:44:30 -08:00
src feat(std): emulate flock for solaris via fcntl 2025-09-07 00:05:13 -04:00
tests add test 2025-09-04 14:17:31 +07:00
build.rs Use feature(target_has_reliable_f16_f128) in library tests 2025-04-27 20:10:33 +00:00
Cargo.toml std: Update wasi crate dependency 2025-09-05 17:01:07 -07:00