Applies or removes an advisory lock on a file descriptor.
fn flock(fd: i32, op: i32) -> i32
The affected file descriptor.
The operation to be used.
Returns succcess or an error value.
flock(2)