Uring.Rename_flags
Flags that can be passed to renameat. See renameat2(2) for details.
renameat
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.
of_int i
i
val to_int : t -> int
to_int t is the integer with the bits of the flags t set.
to_int t
t
val (+) : t -> t -> t
a + b is the union of the sets.
a + b
val mem : t -> t -> bool
mem x flags is true iff x is a subset of flags.
mem x flags
true
x
flags
val (=) : t -> t -> bool
a = b is true iff a and b are the same set of flags.
a = b
a
b
val noreplace : t
noreplace causes the rename to fail with Unix.EEXIST if new_path already exists, rather than atomically replacing it.
noreplace
Unix.EEXIST
new_path
val exchange : t
exchange atomically exchanges old_path and new_path. Both must exist. Cannot be used with noreplace.
exchange
old_path
val whiteout : t
whiteout (used with exchange) additionally leaves a "whiteout" object at old_path. Used by overlay/union filesystems.
whiteout