posix-next API 0.1.0
Out-of-tree Zephyr POSIX module
Loading...
Searching...
No Matches
flock Struct Reference

File segment locking structure used with F_GETLK, F_SETLK, and F_SETLKW. More...

#include <zephyr/posix/fcntl.h>

Data Fields

short l_type
 Lock type: F_RDLCK, F_WRLCK, or F_UNLCK.
 
short l_whence
 How to interpret l_start: SEEK_SET, SEEK_CUR, SEEK_END.
 
long l_start
 Byte offset to start of locked region.
 
long l_len
 Length of locked region in bytes (0 = to EOF).
 
pid_t l_pid
 PID of the process holding the lock (F_GETLK output only).
 

Detailed Description

File segment locking structure used with F_GETLK, F_SETLK, and F_SETLKW.

Definition at line 165 of file fcntl.h.

Field Documentation

◆ l_len

long flock::l_len

Length of locked region in bytes (0 = to EOF).

Definition at line 169 of file fcntl.h.

◆ l_pid

pid_t flock::l_pid

PID of the process holding the lock (F_GETLK output only).

Definition at line 170 of file fcntl.h.

◆ l_start

long flock::l_start

Byte offset to start of locked region.

Definition at line 168 of file fcntl.h.

◆ l_type

short flock::l_type

Lock type: F_RDLCK, F_WRLCK, or F_UNLCK.

Definition at line 166 of file fcntl.h.

◆ l_whence

short flock::l_whence

How to interpret l_start: SEEK_SET, SEEK_CUR, SEEK_END.

Definition at line 167 of file fcntl.h.


The documentation for this struct was generated from the following file: