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

POSIX File Locking option group. More...

Data Structures

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

Macros

#define F_GETLK   ZVFS_F_GETLK
 Get the first lock that blocks the lock described by the argument.
 
#define F_SETLK   ZVFS_F_SETLK
 Set or clear a file segment lock (non-blocking).
 
#define F_SETLKW   ZVFS_F_SETLKW
 Set or clear a file segment lock (blocking).
 
#define F_RDLCK   ZVFS_F_RDLCK
 Lock type: shared read lock.
 
#define F_UNLCK   ZVFS_F_UNLCK
 Lock type: unlock (release a lock).
 
#define F_WRLCK   ZVFS_F_WRLCK
 Lock type: exclusive write lock.
 

Detailed Description

POSIX File Locking option group.

Macro Definition Documentation

◆ F_GETLK

#define F_GETLK   ZVFS_F_GETLK

Get the first lock that blocks the lock described by the argument.

Definition at line 48 of file fcntl.h.

◆ F_RDLCK

#define F_RDLCK   ZVFS_F_RDLCK

Lock type: shared read lock.

Definition at line 66 of file fcntl.h.

◆ F_SETLK

#define F_SETLK   ZVFS_F_SETLK

Set or clear a file segment lock (non-blocking).

Definition at line 50 of file fcntl.h.

◆ F_SETLKW

#define F_SETLKW   ZVFS_F_SETLKW

Set or clear a file segment lock (blocking).

Definition at line 52 of file fcntl.h.

◆ F_UNLCK

#define F_UNLCK   ZVFS_F_UNLCK

Lock type: unlock (release a lock).

Definition at line 68 of file fcntl.h.

◆ F_WRLCK

#define F_WRLCK   ZVFS_F_WRLCK

Lock type: exclusive write lock.

Definition at line 70 of file fcntl.h.