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

    libfilo 0.11

    Download button

    No screenshots available
    Downloads: 365  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Alberto Bertogli | More programs
    Open Software License / FREE
    October 12th, 2005, 06:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    libfilo description

    libfilo is a small portable library to do userspace file locking, like fcntl(), lockf() or flock(), but within threads.

    libfilo is a small portable library to do userspace file locking, like fcntl(), lockf() or flock(), but within threads.

    If you want multiple threads to access a file simultaneously, you will probably need some kind of locking to avoid them stepping on each other and corrupting everything. Currently, there is no standard way of doing this:

    · fcntl() ignores threads, and only works between processes.
    · flock() is not really standard and doesn't work well over NFS.
    · lockf(), while it is documented in POSIX, it's often implemented using fcntl() so it's also useless.

    So this library allows you to do read/write file locking with byte granularity and fcntl-like semantics, within threads. It's written in C, in about 600 lines of code, and has no dependencies on external libraries.

    It's based on the traditional POSIX API and follows the Single UNIX Specification, so it should be portable to all major UNIX variants without problems; however it's developed under Linux, so please let me know if you try it somewhere else.

    Product's homepage

      


    TAGS:

    portable library | small library | file locking | libfilo | portable | library

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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