#[repr(C)]pub struct flock {
pub l_type: c_short,
pub l_whence: c_short,
pub l_start: off_t,
pub l_len: off_t,
pub l_pid: pid_t,
}Expand description
Fields§
§l_type: c_shortType of lock; F_RDLCK, F_WRLCK, F_UNLCK.
l_whence: c_shortFlag for starting offset.
l_start: off_tRelative offset in bytes.
l_len: off_tSize; if 0 then until EOF.
l_pid: pid_tFor a process-owned file lock, ignored on input or the process ID of
the owning process on output; for an OFD-owned file lock, zero on input
or (pid_t) - 1 on output.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for flock
impl RefUnwindSafe for flock
impl Send for flock
impl Sync for flock
impl Unpin for flock
impl UnsafeUnpin for flock
impl UnwindSafe for flock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more