Module Line.Stat.Mode


module Mode: sig .. end
Various bits in a file's mode (permissions). See chmod(2).

val xusr : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is executable by owner. (accessor, required)
val set_xusr : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.xusr
val wusr : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is writeable by owner. (accessor, required)
val set_wusr : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.wusr
val rusr : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is readable by owner. (accessor, required)
val set_rusr : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.rusr
val xgrp : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is executable by group. (accessor, required)
val set_xgrp : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.xgrp
val wgrp : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is writeable by group. (accessor, required)
val set_wgrp : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.wgrp
val rgrp : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is readable by group. (accessor, required)
val set_rgrp : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.rgrp
val xoth : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is executable by everyone. (accessor, required)
val set_xoth : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.xoth
val woth : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is writeable by everyone. (accessor, required)
val set_woth : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.woth
val roth : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File is readable by everyone. (accessor, required)
val set_roth : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.roth
val suid : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File has set-user-id bit set. (accessor, required)
val set_suid : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.suid
val sgid : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File has set-group-id bit set. (accessor, required)
val set_sgid : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.sgid
val sticky : < stat : < mode : Line.present; .. >; .. > Line.t -> bool
File has sticky bit set. (accessor, required)
val set_sticky : bool ->
(< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.sticky
val bits : < stat : < mode : Line.present; .. >; .. > Line.t -> int
The entire mode word, as used by chmod. (accessor, required)
val set_bits : int -> (< stat : < mode : Line.present; .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.Mode.bits
val create : xusr:bool ->
wusr:bool ->
rusr:bool ->
xgrp:bool ->
wgrp:bool ->
rgrp:bool ->
xoth:bool ->
woth:bool ->
roth:bool ->
suid:bool ->
sgid:bool ->
sticky:bool ->
bits:int ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : 'g; seq : 'h; source : 'i;
stat : < blksize : 'j; blocks : 'k; mode : Line.absent > >
Line.t ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : 'g; seq : 'h; source : 'i;
stat : < blksize : 'j; blocks : 'k; mode : Line.present > >
Line.t
Add the Line.Stat.Mode substructure to a line.