GitXplorerGitXplorer
s

ocaml-flock

public
15 stars
6 forks
2 issues

Commits

List of commits on branch master.
Unverified
01be90c2ae1c21a22941773c24817945415b75b1

Merge pull request #2 from djs55/works-on-osx

ssimonjbeaumont committed 8 years ago
Unverified
993157bd9354c16badba51852fdca5f28b1cd361

opam: allow install on macOS

ddjs55 committed 8 years ago
Unverified
a0d60da787e7fb899b640a904dbca5cfdd92a8ad

Merge pull request #1 from johnelse/patch-1

ssimonjbeaumont committed 9 years ago
Unverified
b290413f5e96c95221f9817c809403267c11adc1

Update README.md

jjohnelse committed 9 years ago
Unverified
5aef7f388c8af47b547445c2ea3045b9b9888204

docs: Add docs to Github Pages

ssimonjbeaumont committed 9 years ago
Unverified
257142943b6f70215015d3a003f1b6242e5c8fd6

flock: Add .mli and documentation

ssimonjbeaumont committed 9 years ago

README

The README file for this repository.

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.