package posix-signal

  1. Overview
  2. Docs

Bindings to <signal.h>

type sigset
type signal = [
  1. | `Sigabrt
  2. | `Sigalrm
  3. | `Sigbus
  4. | `Sigchld
  5. | `Sigcont
  6. | `Sigfpe
  7. | `Sighup
  8. | `Sigill
  9. | `Sigint
  10. | `Sigkill
  11. | `Sigpipe
  12. | `Sigquit
  13. | `Sigsegv
  14. | `Sigstop
  15. | `Sigterm
  16. | `Sigtstp
  17. | `Sigttin
  18. | `Sigttou
  19. | `Sigusr1
  20. | `Sigusr2
  21. | `Sigtrap
  22. | `Sigurg
  23. | `Sigxcpu
  24. | `Sigxfsz
]
type action = [
  1. | `Sig_block
  2. | `Sig_setmask
  3. | `Sig_unblock
]
val sigemptyset : unit -> sigset
val sigaddset : sigset -> signal -> unit
val sigismember : sigset -> signal -> bool
val pthread_sigmask : action -> sigset option -> sigset
val sigprocmask : action -> sigset option -> sigset
OCaml

Innovation. Community. Security.