Remove dependency on oclock

OS X doesn't support the clock_gettime API. Ideally we would extend
oclock to do the right thing (TM) on OS X. For the meantime, fall back
to gettimeofday.

Signed-off-by: David Scott <dave.scott@citrix.com>
Regenerate OASIS

Signed-off-by: David Scott <dave.scott@citrix.com>
Merge pull request #9 from djs55/remove-oclock

Remove dependency on oclock
Fix the 'make test' target

Signed-off-by: David Scott <dave.scott@citrix.com>
test: avoid hard-coding the path to 'true'

Signed-off-by: David Scott <dave.scott@citrix.com>
Fix socket handling on OS X

If a Unix socket fails in Unix.connect, then the socket must be
closed and re-opened, otherwise the second attempt to connect will
receive EINVAL on OS X (not Linux)

Signed-off-by: David Scott <dave.scott@citrix.com>
Merge pull request #10 from djs55/osx

Now works on OS X
lwt: remove use of the syntax extention within the Client

We may be able to expand the IO module to include locks and tasks, and
functorise the Client over it.

Signed-off-by: David Scott <dave.scott@citrix.com>
Add an Ivar to the IO signature and implement for Unix, Lwt

Signed-off-by: David Scott <dave.scott@citrix.com>
Add a Mutex to the IO signature

Signed-off-by: David Scott <dave.scott@citrix.com>
Lwt-style client is now functorised

Signed-off-by: David Scott <dave.scott@citrix.com>
Functorised client supports RPC timeouts

Previously only the legacy Unix version supported timeouts.

Also: fix a resource leak in the Lwt client which was already fixed in
the Unix client (!)

Signed-off-by: David Scott <dave.scott@citrix.com>
'include Cohttp_lwt_unix_io' rather than duplicating it

Signed-off-by: David Scott <dave.scott@citrix.com>
Initial draft of Async support

Signed-off-by: David Scott <dave.scott@citrix.com>
Regenerate OASIS

Signed-off-by: David Scott <dave.scott@citrix.com>
travis: add async

Signed-off-by: David Scott <dave.scott@citrix.com>
oasis: remove lwt.syntax from one package, because it infects others

All files within the directory get the syntax extension applied, even
if some are from other packages/libraries which use other syntax.

Signed-off-by: David Scott <dave.scott@citrix.com>
Async: use Monitor.finally to release the Mutex

Signed-off-by: David Scott <dave.scott@citrix.com>
Regenerate OASIS

Signed-off-by: David Scott <dave.scott@citrix.com>
async: implement 'connect'

Signed-off-by: David Scott <dave.scott@citrix.com>