package extunix

  1. Overview
  2. Docs
type t = private int
val is_set : t -> t -> bool

is_set flags flag

  • returns

    whether flag is set in flags

is_inter flags1 flags2

  • returns

    whether flags1 and flags2 have non-empty intersection

val is_inter : t -> t -> bool

is_inter flags1 flags2

  • returns

    whether flags1 and flags2 have non-empty intersection

  • returns

    intersection of two flags (AND)

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

    intersection of two flags (AND)

  • returns

    union of two flags (OR)

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

    union of two flags (OR)

  • returns

    union of several flags (OR)

val join : t list -> t
  • returns

    union of several flags (OR)

equivalent to union

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)