module Native_file: sig
.. end
type
stats = Unix.stats
= {
|
st_dev :int ; |
|
st_ino :int ; |
|
st_kind :Core_unix.file_kind ; |
|
st_perm :Core_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 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 : Core_unix.File_descr.t -> stats
Return the information for the file associated with the given
descriptor.
val lseek : Core_unix.File_descr.t -> int -> mode:Core_unix.seek_command -> int
val truncate : string -> len:int -> unit
val ftruncate : Core_unix.File_descr.t -> len:int -> unit
val stats_of_sexp : Sexplib.Sexp.t -> stats
val sexp_of_stats : stats -> Sexplib.Sexp.t
Return the information for the named file.
Same as UnixLabels.stat
, but in case the file is a symbolic link,
return the information for the link itself.
Return the information for the file associated with the given
descriptor.