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
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
|
|
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
|
|
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
|
|
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
|
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