package async_unix

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Int63 : sig ... end
module Poll_mask : sig ... end
module Clock : sig ... end
module Statx : sig ... end
module Open_flags : sig ... end

Flags that can be passed to openat2.

module Resolve : sig ... end

Flags that can be passed to openat2 to control path resolution.

type t
module Syscall_result : sig ... end
module Handle : sig ... end
val create : ?polling_timeout:int -> queue_depth:int -> unit -> t Core.Or_error.t
val supports_ext_arg : t -> bool
val exit : t -> unit
val register_eventfd : t -> Core_unix.File_descr.t -> unit
val submit : t -> int
val cqe_ready : t -> timeout:float -> bool
val fill_completions : t -> int
val noop : t -> Handle.t
val read : t -> file_offset:Int63.t -> Core_unix.File_descr.t -> Cstruct.t -> Handle.t
val write : t -> file_offset:Int63.t -> Core_unix.File_descr.t -> Cstruct.t -> Handle.t
val readv : t -> file_offset:Int63.t -> Core_unix.File_descr.t -> Cstruct.t list -> Handle.t
val writev : t -> file_offset:Int63.t -> Core_unix.File_descr.t -> Cstruct.t list -> Handle.t
val openat2 : t -> access:[ `R | `W | `RW ] -> flags:Open_flags.t -> perm:Core_unix.file_perm -> resolve:Resolve.t -> ?fd:Core_unix.File_descr.t -> string -> Handle.t

Openat2 will fail if non-zero perms are passed while no file is being created (i.e. when creat or tmpfile are not passed as flags)

val timeout : t -> ?absolute:bool -> Clock.t -> int64 -> Handle.t
val statx : t -> ?fd:Core_unix.File_descr.t -> mask:Statx.Mask.t -> string -> Statx.t -> Statx.Flags.t -> Handle.t
val cancel : t -> Handle.t -> unit Async_kernel.Deferred.t
OCaml

Innovation. Community. Security.