module Native_file: sig
.. end
type
stats = Unix.stats
= {
|
st_dev :int ; |
|
st_ino :int ; |
|
st_kind :Unix.file_kind ; |
|
st_perm :Unix.file_perm ; |
|
st_nlink :int ; |
|
st_uid :int ; |
|
st_gid :int ; |
|
st_rdev :int ; |
|
st_size :int ; |
|
st_atime :float ; |
|
st_mtime :float ; |
|
st_ctime :float ; |
}
The informations returned by the UnixLabels.stat
calls.
val sexp_of_stats : stats -> Sexplib.Sexp.t
val stats_of_sexp : Sexplib.Sexp.t -> stats
val stat : string -> stats
Return the information for the named file.
val lstat : string -> stats
Same as UnixLabels.stat
, but in case the file is a symbolic link,
return the information for the link itself.
val fstat : Unix.File_descr.t -> stats
Return the information for the file associated with the given
descriptor.
val lseek : Unix.File_descr.t -> int -> mode:Unix.seek_command -> int
val truncate : string -> len:int -> unit
val ftruncate : Unix.File_descr.t -> len:int -> unit