Module Specific.Poll

type t = private int
val is_set : t -> t -> bool

is_set flags flag

  • returns

    whether flag is set in flags

val is_inter : t -> t -> bool

is_inter flags1 flags2

  • returns

    whether flags1 and flags2 have non-empty intersection

val inter : t -> t -> t
  • returns

    intersection of two flags (AND)

val union : t -> t -> t
  • returns

    union of two flags (OR)

val join : t list -> t
  • returns

    union of several flags (OR)

val (+) : t -> t -> t

equivalent to union

val pollin : t
val pollpri : t
val pollout : t
val pollerr : t
val pollhup : t
val pollnval : t
val pollrdhup : t

may not be present on all platforms (=0)

val none : t

no poll flags (=0)