I've been working on a set of patches to add a new type file record lock to the Linux kernel that have less troublesome semantics on close and that are usable by threaded applications. I have a blog post here with more details: http://jtlayton.wordpress.com/2014/01/07/file-private-posix-locks-aka-un-posix-locks/ ...and the latest kernel patchset is here: https://lkml.org/lkml/2014/1/14/554 This patchset represents a set of corresponding updates for glibc. It just adds the new cmd values to fcntl.h, and a manual update that discusses how to use the new locks. I'm currently shooting for a merge in v3.15 kernel so I'm posting this as an RFC for now. Comments and suggestions appreciated... Thanks, Jeff Layton (2): fcntl.h: add new definitions for file-private lock cmd values manual: update manual to document file-private locks ChangeLog | 5 + manual/llio.texi | 175 ++++++++++++++++++++++++++++- sysdeps/unix/sysv/linux/bits/fcntl-linux.h | 18 +++ 3 files changed, 196 insertions(+), 2 deletions(-) -- 1.8.5.3 -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html