Module Styx__Types.Flag

Flags determine the type of I/O to allow on a fid in a Topen or Tcreate request.

type t
val of_int : int -> t
val of_iovec : Iovec.t -> t
type kind =
| OREAD

Read-only access

| OWRITE

Write-only access

| ORDWR

Read-write access

| OEXEC

Execute access

| OTRUNC

Truncate file

| ORCLOSE

Remove file on clunk (close)

val check : t -> kind -> bool
val write : w:Iovec.writer -> t -> Iovec.writer
val to_int : t -> int