Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
This module provides support for signal handling.
exception Exception of error
val of_string : string -> t
Converts a string into a signal.
Raises Exception
if the passed string is invalid.
val to_sys : t -> int
Converts a signal into its Sys
equivalent.
val of_sys : int -> t
Converts a Sys
integer code into a signal.
Raises Exception
if the passed integer is invalid.
val to_int : t -> int
Converts a signal into an integer between 0
and max_int - 1
.
val of_int : int -> t
Converts an integer into a signal.
Raises Exception
if the passed integer is invalid (below 0, or above or equal to max_int
).