sysutils/p5-File-FcntlLock 0.22nb3 NetBSD
File locking with fcntl(2)
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- Last update
- Commit
618415630a- License
- gnu-gpl-v2 OR artistic
- Categories
- sysutils, perl5
- Package size
- 17.3 KiB, 131.1 KiB installed
Description
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.
In the other systems
| System | Port | Version |
|---|---|---|
| NetBSD | sysutils/p5-File-FcntlLock | 0.22nb3 |
| FreeBSD | devel/p5-File-FcntlLock | 0.22 |
| OpenBSD | devel/p5-File-FcntlLock | 0.22 |
| DragonFly | devel/p5-File-FcntlLock | 0.22 |
Install
Binary package:
pkgin install p5-File-FcntlLock
From pkgsrc:
cd /usr/pkgsrc/sysutils/p5-File-FcntlLock && make install clean