As described in #49773 (comment), the file-locking API uses incorrect fnctl constants on sparc64.
Compare the glibc headers on sparc64:
https://github.molgen.mpg.de/git-mirror/glibc/blob/master/sysdeps/unix/sysv/linux/sparc/bits/fcntl.h#L53
and what's in the rust sources:
https://doc.rust-lang.org/nightly/nightly-rustc/src/rustc_data_structures/flock.rs.html#45
Would there be a mechanism to sync the constants directly with the glibc sources, i.e. "using the headers"?
@jrtc27 @karcherm @psumbera @michaelwoerister @alexcrichton