./sysutils/p5-File-FcntlLock, File locking with fcntl(2)

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.22, Package name: p5-File-FcntlLock-0.22, Maintainer: pkgsrc-users

Using this module file locking via fcntl(2) can be done (obviously, this
restricts the use of the module to systems that have a fcntl(2) system call).
Before a file (or parts of a file) can be locked, an object simulating a flock
structure, containing information in a binary format to be passed to fcntl(2)
for locking requests, must be created and its properties set. Afterwards, by
calling the lock() method a lock can be set and removed or it can be determined
if and which process currently holds the lock.


Master sites: (Expand)

Filesize: 16.596 KB

Version history: (Expand)


CVS history: (Expand)


   2023-11-16 09:54:16 by Adam Ciarcinski | Files touched by this commit (3)
Log message:
p5-File-FcntlLock: added version 0.22

Using this module file locking via fcntl(2) can be done (obviously, this
restricts the use of the module to systems that have a fcntl(2) system call).
Before a file (or parts of a file) can be locked, an object simulating a flock
structure, containing information in a binary format to be passed to fcntl(2)
for locking requests, must be created and its properties set. Afterwards, by
calling the lock() method a lock can be set and removed or it can be determined
if and which process currently holds the lock.