pub fn fcntl_getlk<Fd: AsFd>(fd: Fd, lock: &Flock) -> Result<Option<Flock>>
Available on crate feature
process
only.Expand description
fcntl(fd, F_GETLK)
—Get the first lock that blocks the lock description
pointed to by the argument lock
. If no such lock is found, then None
is
returned.
If lock.typ
is set to FlockType::Unlocked
, the returned value/error is
not explicitly defined, as per POSIX, and will depend on the underlying
platform implementation.