package uring

  1. Overview
  2. Docs
include FLAGS
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:Stdlib.Int64.t -> Stdlib.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.