qlibs:
Section: Misc. Reference Manual Pages (lock)
Updated: 3
Index
Return to Main Contents
NAME
lock - lock or unlock a file descriptor
SYNTAX
#include "lock.h"
int lock_ex(int fd)
int lock_exnb(int fd)
int lock_un(int fd)
DESCRIPTION
lock_ex
locks
fd
exclusively.
lock_exnb
locks
fd
exclusively but do not block when locking.
lock_un
unlocks
fd.
NOTE
The
lock
functions take care about the different
semantics of the POSIX locking implentations given
flock
and
lockf.
Index
- NAME
-
- SYNTAX
-
- DESCRIPTION
-
- NOTE
-
This document was created by
man2html,
using the manual pages.
Time: 11:50:49 GMT, June 03, 2025