Module Line.Stat


module Stat: sig .. end
Line structure for file status and mode information. See stat(2) and Unix.stat.

val dev : < stat : < .. >; .. > Line.t -> int
The id of the device containing the file. (accessor, required)
val set_dev : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.dev
val inode : < stat : < .. >; .. > Line.t -> int
The inode of the file. (accessor, required)
val set_inode : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.inode
val kind : < stat : < .. >; .. > Line.t -> Unix.file_kind
The type of the file (regular file, directory, named pipe, etc.). See Unix.file_kind. (accessor, required, default = Unix. S_REG)
val set_kind : Unix.file_kind -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.kind
module Mode: sig .. end
Various bits in a file's mode (permissions).
val nlink : < stat : < .. >; .. > Line.t -> int
The number of hard links to the file. (accessor, required)
val set_nlink : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.nlink
val uid : < stat : < .. >; .. > Line.t -> int
User id of the owner of the file. (accessor, required)
val set_uid : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.uid
val gid : < stat : < .. >; .. > Line.t -> int
Group id of the file. (accessor, required)
val set_gid : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.gid
val rdev : < stat : < .. >; .. > Line.t -> int
Device number of the file (if it's a special file). (accessor, required)
val set_rdev : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.rdev
val size : < stat : < .. >; .. > Line.t -> int
Size of the file in bytes. This is the size of the file's contents for a regular file, or the length of the target path of a symbolic link. (accessor, required)
val set_size : int -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.size
val blksize : < stat : < blksize : Line.present; .. >; .. > Line.t -> int
The preferred block size for efficient I/O with this file. (accessor, nullable)
val set_blksize : 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 : 'l > >
Line.t ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : 'g; seq : 'h; source : 'i;
stat : < blksize : Line.present; blocks : 'k; mode : 'l > >
Line.t
Updater for Line.Stat.blksize
val blocks : < stat : < blocks : Line.present; .. >; .. > Line.t -> int
The number of 512-byte blocks in the file. (accessor, nullable)
val set_blocks : 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 : 'l > >
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 : Line.present; mode : 'l > >
Line.t
Updater for Line.Stat.blocks
val atime : < stat : < .. >; .. > Line.t -> float
The file's atime. (accessor, required)
val set_atime : float -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.atime
val mtime : < stat : < .. >; .. > Line.t -> float
The file's mtime. (accessor, required)
val set_mtime : float -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.mtime
val ctime : < stat : < .. >; .. > Line.t -> float
The file's ctime. (accessor, required)
val set_ctime : float -> (< stat : < .. >; .. > as 'a) Line.t -> 'a Line.t
Updater for Line.Stat.ctime
val create : dev:int ->
inode:int ->
kind:Unix.file_kind ->
nlink:int ->
uid:int ->
gid:int ->
rdev:int ->
size:int ->
atime:float ->
mtime:float ->
ctime:float ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : 'g; seq : 'h; source : 'i; stat : 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 : Line.absent; blocks : Line.absent; mode : Line.absent > >
Line.t
Add the Line.Stat substructure to a line.