You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One of the first interesting goals for ocaml-bidngen is to generate bindings for the kqueue set of syscalls, so we can drop the custom C code we have in gluon.
At minimum we need a module that implements these:
Creating a new kqueue instance: kqueue : unit -> kqueue
Polling for events on a kqueue instance: kevent : max_events:int -> timeout:int64 -> kqueue -> event array
Updating the kqueue instance: fcntl : Fd.t -> cmd:int -> arg:int -> int
Registering events of interest: kevent_register : kqueue -> event array -> int array -> unit
One of the first interesting goals for
ocaml-bidngen
is to generate bindings for thekqueue
set of syscalls, so we can drop the custom C code we have ingluon
.At minimum we need a module that implements these:
kqueue : unit -> kqueue
kevent : max_events:int -> timeout:int64 -> kqueue -> event array
fcntl : Fd.t -> cmd:int -> arg:int -> int
kevent_register : kqueue -> event array -> int array -> unit
The current custom C code for this lives here.
The text was updated successfully, but these errors were encountered: