Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    File::LockDir 0.01

    Download button

    No screenshots available
    Downloads: 7,278  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Very Good (4.3/5)
    3 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Joe McMahon | More programs
    Perl Artistic License / FREE
    January 23rd, 2007, 07:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    File::LockDir description

    File::LockDir is a Perl basic filename-level lock utility.

    File::LockDir is a Perl basic filename-level lock utility.

    SYNOPSIS

    use File::LockDir;

    INTERFACE

    new

    Initializes the class. Returns the singleton object.

    nflock($file, $nap_till, $locker, $lockhost)

    Locks the supplied filename. Only $file is required.

    $file is the file to be locked; $nap_till is the total amount of time to wait before giving up; $locker is a name identifying the locker; $lockhost is the host requesting the lock.

    nunflock($file)

    Unlocks the supplied file.

    nlock_state($file)

    Checks the state of the lock for the supplied file. Returns a list: the first item is true if the file is unlocked, and false if not; the second item is undef if the file is unlocked, and the identity (name and host) is it is locked.

    DIAGNOSTICS

    %s already locked

    Seen when you've already locked the requested pathname. Informational only.

    No pathname to be locked

    You didn't supply a pathname to be locked to nflock. Fatal.

    can't write to directory of %s

    The directory where the file resides can't be written, so the lockfile can't be created.

    can't get %s: %s

    The named lock can't be gotten: the reason is supplied. Failure occurs after ten tries to get the lock.

    %s %s[%s]: lock on %s held by %s

    The lock on the specified file is help by the noted locker. Informatory message, printed only when debugging is on.

    close failed for %s: %s

    The file containing the lock information couldn't be closed for the reason shown.

    releasing lock on %s

    Debug message; notes that the lock on the specified file was successfully released.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    filename-level lock | lock utility | Perl module | File::LockDir | filename-level | lock

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM