Linux SoftwareProgrammingLibrarieslibfilo 0.11

libfilo 0.11


libfilo is a small portable library to do userspace file locking, like fcntl(), lockf() or flock(), but within threads. If you wan
Developer:   Alberto Bertogli
      more software by author →
Price:  0.00
License:   Open Software License
File size:   12K
Language:   
OS:   
Rating:   0 /5 (0 votes)
Your vote:  
enlarge screenshot


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.
    tags within  threads  file  locking  

    Download libfilo 0.11


     http://auriga.wearlab.de/~alb/libfilo/files/0.11/libfilo-0.11.tar.gz
     http://auriga.wearlab.de/~alb/libfilo/files/0.11/libfilo-0.11.tar.bz2


    Authors software

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

    If you wan

    old 0.17 (by Alberto Bertogli)
    old is a short from Open Lock Daemon and is a simple lock server which provides central point where to lock resources in a distribute

    libjio 0.23 (by Alberto Bertogli)
    libjio is a C library to do journaled, transaction-oriented I/O

    darcsweb 0.16 (by Alberto Bertogli)
    darcsweb is a very simple Web interface for darcs

    nmdb 0.10 (by Alberto Bertogli)
    nmdb is a network database that uses the TIPC protocol to communicate with it's clients.

    nmdb consists of an in-memory cache, that


    Similar software

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

    If you wan

    GNU Pth 2.0.7 (by Ralf S. Engelschall)
    Pth is a very portable POSIX/ANSI-C based library for Unix platforms which provides non-preemptive priority-based scheduling for mult

    FSPLIB 0.8 (by Radim Kolar)
    FSPLIB project is implementation of an FSP (file service protocol) stack written in C.

    The library API is very easy to use because

    DM1 Threads Library 1.0.5 (by Dibyendu Majumdar)
    DM1 Thread Library is part of the DM1 project

    libjio 0.23 (by Alberto Bertogli)
    libjio is a C library to do journaled, transaction-oriented I/O

    Portable Coroutine Library 1.6 (by Davide Libenzi)
    Portable Coroutine Library (PCL) implements the low level functionality for coroutines

    libasyncns 0.1 (by Lennart Poettering)
    libasyncns is a C library for Linux/Unix for executing name service queries asynchronously

    Kerrighed 1.0.1 (by Kerrighed Research Team)
    Kerrighed is a Single System Image operating system for clusters

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

    grmd 0.1 (by Masahiko Ito)
    grmd is a daemon program on UNIX-like systems which provide general management feature for every resources.

    usually in exclusive l


    Other software in this category

    zlib 1.2.3 (by Jean-loup Gailly)
    zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp

    libjpeg v6b (by Independent JPEG Group)
    libjpeg is a library for handling the JPEG (JFIF) image format

    OpenSSL 0.9.7c (by The OpenSSL Project Team)
    The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement

    libxml2 2.6.27 (by DV)
    Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i

    GNU C library 2.4 (by Andreas Jaeger)
    GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions.

    GNU C library is us

  •     search


    Featured Software

    jEdit 4.3 pre8
    jEdit is an Open Source text editor written in Java

    Opera 9.02
    Surf the Internet in a safer, faster, and easier way with Opera browser

    GNU Aspell 0.60.4
    GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell


    Subscribe in Rojo
    Google Reader
    Add to My Yahoo!

    Add to My AOL
    Subscribe with Bloglines
    Subscribe in NewsGator Online
    Add 'nixbit linux software' to Newsburst from CNET News.com
    del.icio.us nixbit linux software


    Top tags