Skip to content

simonjbeaumont/ocaml-flock

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ocaml-flock

Build Status Coverage Status API reference

Some type-safe C bindings to flock(2) and a simple OCaml wrapper function.

If you want to use flock and get on with your life then this is for you. Sure you can get this in Core, but if you only need flock then that's 10 more minutes building your package and 10 more MB to link it in that you can do without, right?

Installation

./configure [--enable-tests]
make
make install

Usage

There's only one function exposed by this library:

val flock : ?nonblocking:bool -> Unix.file_descr -> lock_operation -> unit

Go nuts!

Documentation

The API documentation for this library is automatically generated from source using ocamldoc and is available online.

About

Ctypes bindings to flock(2) for OCaml

Resources

License

Stars

Watchers

Forks

Packages

No packages published