We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
flock()
1 parent 2c8588d commit 46a0deaCopy full SHA for 46a0dea
stdlib/src/fcntl.rs
@@ -141,6 +141,8 @@ mod fcntl {
141
}
142
143
144
+ // XXX: at the time of writing, wasi and redox don't have the necessary constants/function
145
+ #[cfg(not(any(target_os = "wasi", target_os = "redox")))]
146
#[pyfunction]
147
fn flock(fd: i32, operation: i32, vm: &VirtualMachine) -> PyResult {
148
let ret = unsafe { libc::flock(fd, operation) };
0 commit comments