Up

module User_and_group

: sig

A pair of unix username and primary unix group.

#
type t
include Core_kernel.Std.Identifiable.S with type t := t
#
val create : user:string -> group:string -> t
#
val user : t -> string
#
val group : t -> string
#
val for_this_process : unit -> t Core_kernel.Std.Or_error.t

Get the t for the current process. If you're using async, there is a wrapper, Async.Std.User_and_group, that doesn't do blocking calls.

#
val for_this_process_exn : unit -> t
#
module Stable : sig
#
module V1 : sig
include sig
#
type __pa_nonrec_0 = t
#
type t = __pa_nonrec_0
end
with type __pa_nonrec_0 := t
include Core_kernel.Std.Stringable with type t := t
#
val compare : t -> t -> int
#
val bin_t : t Core_kernel.Std.Bin_prot.Type_class.t
#
val bin_read_t : t Core_kernel.Std.Bin_prot.Read.reader
#
val __bin_read_t__ : (int -> t) Core_kernel.Std.Bin_prot.Read.reader
#
val bin_reader_t : t Core_kernel.Std.Bin_prot.Type_class.reader
#
val bin_size_t : t Core_kernel.Std.Bin_prot.Size.sizer
#
val bin_write_t : t Core_kernel.Std.Bin_prot.Write.writer
#
val bin_writer_t : t Core_kernel.Std.Bin_prot.Type_class.writer
#
val t_of_sexp : Sexplib.Sexp.t -> t
#
val sexp_of_t : t -> Sexplib.Sexp.t
end
end
end