LockFile::Simple is a simple file locking scheme. SYNOPSIS use LockFile::Simple qw(lock trylock unlock); # Simple locking using default settings lock("/some/file") || die "cant lock /some/filen"; warn "already lockedn" unless trylock("/some/file"); unlock("/some/file"); # Build customized locking manager object $lockmgr = LockFile::Simple->make(-format => %f.lck, -max => 20, -delay => 1, -nfs => 1); $lockmgr->lock("/some/file") || die "cant lock /some/filen"; $lockmgr->trylock("/some/file"); $lockmgr->unlock("/some/file"); $lockmgr->configure(-nfs => 0); # Using lock handles my $lock = $lockmgr->lock("/some/file"); $lock->release; This simple locking scheme is not based on any file locking system calls such as flock() or lockf() but rather relies on basic file system primitives and properties, such as the atomicity of the write() system call. It is not meant to be exempt from all race conditions, especially over NFS. The algorithm used is described below in the ALGORITHM section. It is possible to customize the locking operations to attempt locking once every 5 seconds for 30 times, or delete stale locks (files that are deemed too ancient) before attempting the locking..

Libraries
-
Daizu::File 0.3
Daizu::File is a Perl class representing files in working copies. Each object of this class represents a particular file in a Daizu CMS working copy (a record in the wc_file table). METHODS Note that all the functions which return the value...

419.84 KB

Libraries
-
libConfuse 2.5
libConfuse is a library for parsing configuration files. It was called libcfg before, but was changed to not confuse with other similar libraries. It supports sections and (lists of) values (strings, integers, floats, booleans or other...

Backup Utilities
-
Binary Clock 2.5
Binary Clock is a gadget that will add to your desktop or Sidebar a binary clock. This is a clock displays the current time in binary notation. Save settings to file. (File will be created - Path: %APPDATA% Filename: gadgetname_Settings.ini)....

319 KB

Development Tools
-
XLS2STRUCT 1.0
[S,E] = XLS2STRUCT(FILE) reads the Excel-file FILE and converts the columns into separate fields in the structure S. The first line of the file must contain unique headers for all of the columns, the rest of the file is data. Column names can...

Programming
-
Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....

20.48 KB

Programming
-
dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...

327.68 KB

Programming
-
Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.

Libraries
-
wolfSSL 3.12.2
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...

2.73 MB

Libraries
-
EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows.
Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a
clean, object-oriented...

10.68 MB

Libraries
-
Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.