package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = private int

A set of flags.

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

a + b is the union of the sets.

val mem : t -> t -> bool

mem x flags is true iff x is a subset of flags.

val compressed : t
val immutable : t
val append : t
val nodump : t
val encrypted : t
val verity : t
val dax : t

Since Linux 5.8

val check : ?mask:Int64.t -> Int64.t -> t -> bool

check ?mask attr t will check if t is set in attr.

If mask is not None then it will first check the mask to see if the file attribute is supported and if not raise Invalid_argument.

OCaml

Innovation. Community. Security.