123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354open!ImportmoduletypeS=sigtypeok_valuetype'asyscall_resulttypet=ok_valuesyscall_result[@@derivingcompare,sexp_of]includeEqual.Swithtypet:=tvalcreate_ok:ok_value->tvalcreate_error:Unix_error.t->tvalis_ok:t->boolvalis_error:t->bool(** This returns a preallocated object for all errors and at least a few [ok_value]s, so
can be used in many contexts where avoiding allocation is important. *)valto_result:t->(ok_value,Unix_error.t)Result.tvalok_exn:t->ok_valuevalerror_exn:t->Unix_error.t(** This is more efficient than calling [error_exn] and then the [create_error] of the
destination type. *)valreinterpret_error_exn:t->_syscall_resultvalok_or_unix_error_exn:t->syscall_name:string->ok_valuevalok_or_unix_error_with_args_exn:t->syscall_name:string->'a->('a->Sexp.t)->ok_valuemoduleOptional_syntax:Optional_syntax.Swithtypet:=tandtypevalue:=ok_value(**/**)(*_ See the Jane Street Style Guide for an explanation of [Private] submodules:
https://opensource.janestreet.com/standards/#private-submodules *)modulePrivate:sigvalof_int:int->tvallength_preallocated_errnos:intvallength_preallocated_ms:intendendmoduletypeArg=sigtypet[@@derivingsexp_of,compare](** [to_int t] must be >= 0, otherwise [create_ok] will raise. *)valto_int:t->intvalof_int_exn:int->tend