Contains information about a 64-bit advisory lock.
#include <fcntl.h> struct flock64 { pid_t l_pid; pid_t l_tid; short l_type; short l_whence; long ________spare; off64_t l_start; off64_t l_len; };
Specifies the process ID of the owner of the lock.
Specifies the thread ID of the owner of the lock.
Specifies the lock type:
Specifies the flag for the starting offset of the lock:
Unused.
Specifies the relative offset, in bytes, for the lock.
Specifies the length for the byte range lock. If zero, specifies until EOF.
File locking with the fcntl function is constrained to per-process and is not shared across processes. As long as this remains the case, the value in the l_pid field is a copy of the value in the l_tid field.