Module Uring.Rename_flags

Flags that can be passed to renameat. See renameat2(2) for details.

include FLAGS
type t = private int

A set of flags.

val empty : t
val of_int : int -> t

of_int i is the flags whose bits are those set in i.

val to_int : t -> int

to_int t is the integer with the bits of the flags t set.

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 (=) : t -> t -> bool

a = b is true iff a and b are the same set of flags.

val noreplace : t

noreplace causes the rename to fail with Unix.EEXIST if new_path already exists, rather than atomically replacing it.

val exchange : t

exchange atomically exchanges old_path and new_path. Both must exist. Cannot be used with noreplace.

val whiteout : t

whiteout (used with exchange) additionally leaves a "whiteout" object at old_path. Used by overlay/union filesystems.