Filesystem_types.File_permissionsmodule type S = sig ... endinclude Sinclude Ppx_compare_lib.Comparable.S with type t := tinclude Ppx_compare_lib.Comparable.S__local with type t := tinclude Ppx_compare_lib.Equal.S with type t := tinclude Ppx_compare_lib.Equal.S__local with type t := tinclude Ppx_hash_lib.Hashable.S_any with type t := tval hash_fold_t : t Ppx_hash_lib.hash_foldval hash : t -> Ppx_hash_lib.Std.Hash.hash_valueinclude Ppx_quickcheck_runtime.Quickcheckable.S with type t := tval quickcheck_generator : t Base_quickcheck.Generator.tval quickcheck_observer : t Base_quickcheck.Observer.tval quickcheck_shrinker : t Base_quickcheck.Shrinker.tval sexp_of_t : t -> Sexplib0.Sexp.t @@ portableval empty : t @@ portableNo permissions.
Individual file permission bits.
val u_r : t @@ portableval u_w : t @@ portableval u_x : t @@ portableval g_r : t @@ portableval g_w : t @@ portableval g_x : t @@ portableval o_r : t @@ portableval o_w : t @@ portableval o_x : t @@ portableAll file permission bits, i.e. 0o0777.
val ugo_rwx : t @@ portableCombining permissions with rw (read/write), rx (executables), and rwx (e.g. directories or symlinks).
val u_rw : t @@ portableval g_rw : t @@ portableval o_rw : t @@ portableval u_rx : t @@ portableval g_rx : t @@ portableval o_rx : t @@ portableval u_rwx : t @@ portableval g_rwx : t @@ portableval o_rwx : t @@ portableCombining permissions with ug (user and group) and ugo (everyone).
val ug_r : t @@ portableval ug_w : t @@ portableval ug_x : t @@ portableval ug_rw : t @@ portableval ug_rx : t @@ portableval ug_rwx : t @@ portableval ugo_r : t @@ portableval ugo_w : t @@ portableval ugo_x : t @@ portableval ugo_rw : t @@ portableval ugo_rx : t @@ portableCommonly used combinations.
val t_0644 : t @@ portableu_rw lor ugo_r, i.e. of_int_exn 0o0644
val t_0664 : t @@ portableug_rw lor ugo_r, i.e. of_int_exn 0o0664
val t_0755 : t @@ portableu_rwx lor ugo_rx, i.e. of_int_exn 0o0755
val t_0775 : t @@ portableug_rwx lor ugo_rx, i.e. of_int_exn 0o0775
Special mode bits, used for properties other than actual file permissions.
val setuid : t @@ portableval setgid : t @@ portableval sticky : t @@ portableval special_mode_bits : t @@ portableEquivalent to setuid lor setgid lor sticky, i.e. 0o7000.
val all_including_special_mode_bits : t @@ portableEquivalent to ugo_rwx lor special_mode_bits, i.e. 0o7777.
val is_empty : t -> bool @@ portableTest if the input is empty.
Test if two permissions contain at least one set bit in common.
Test if t contains only permission bits also set in of_.
Produce permissions contained in either input but not both.
module Operators : sig ... endPermissions are represented as unsigned 12-bit integers. The definitions of individual permission bits above proceed from most significant bit to least significant bit in the integer representation.
val of_int_exn : int -> t @@ portableval to_int : t -> int @@ portable