package uring

  1. Overview
  2. Docs
type t

A statx struct.

type kind = [
  1. | `Unknown
  2. | `Fifo
  3. | `Character_special
  4. | `Directory
  5. | `Block_device
  6. | `Regular_file
  7. | `Socket
]
val pp_kind : kind Fmt.t
val create : unit -> t

Use create to make a statx result buffer to pass to statx.

module Flags : sig ... end
module Attr : sig ... end
module Mask : sig ... end

You may wish to use Mask.check to verify the field has actually been returned with a sensible value first.

val blksize : t -> Int64.t
val attributes : t -> Int64.t
val uid : t -> Int64.t
val gid : t -> Int64.t
val ino : t -> Int64.t
val size : t -> Int64.t
val blocks : t -> Int64.t
val attributes_mask : t -> Int64.t
val rdev : t -> Int64.t
val dev : t -> Int64.t
val mask : t -> Int64.t
val mnt_id : t -> Int64.t
val dio_mem_align : t -> Int64.t
val dio_offset_align : t -> Int64.t
val atime_sec : t -> int64
val btime_sec : t -> int64
val ctime_sec : t -> int64
val mtime_sec : t -> int64
val atime_nsec : t -> int
val btime_nsec : t -> int
val ctime_nsec : t -> int
val mtime_nsec : t -> int
val mode : t -> int
val perm : t -> int
val kind : t -> kind
OCaml

Innovation. Community. Security.