BSD Ports

devel/p5-File-Flock 2014.01nb10 NetBSD

File::Flock - file locking with flock

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
618415630a
License
gnu-gpl-v2 OR artistic
Categories
devel, perl5
Package size
11.8 KiB, 31.3 KiB installed

Description

Lock files using the flock() call. If the file to be locked does not exist, then the file is created. If the file was created then it will be removed when it is unlocked assuming it's still an empty file.

Locks can be created by new'ing a File::Flock object. Such locks are automatically removed when the object goes out of scope. The unlock() method may also be used.

lock_rename() is used to tell File::Flock when a file has been renamed (and thus the internal locking data that is stored based on the filename should be moved to a new name). unlock() the new name rather than the original name.

Locks are released on process exit when the process that created the lock exits. Subprocesses that exit do not remove locks. Use forget_locks() or POSIX::_exit() to prevent unlocking on process exit.

In the other systems

SystemPortVersion
NetBSDdevel/p5-File-Flock2014.01nb10
FreeBSDdevel/p5-File-Flock2014.01_1
DragonFlydevel/p5-File-Flock2014.01_1
HardenedBSDdevel/p5-File-Flock2014.01_1
GhostBSDdevel/p5-File-Flock2014.01_1

Install

Binary package:

pkgin install p5-File-Flock

From pkgsrc:

cd /usr/pkgsrc/devel/p5-File-Flock && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_642014.01nb10
NetBSD 10.1 aarch642014.01nb9
SmartOS / illumos x86_642014.01nb10
macOS 15 arm642014.01nb10

Dependencies

Run dependencies 1

Commit history 1

DateCommitCreditsLog message
618415630a wiz *: recursive bump for perl5 5.44.0