Module Unix.Native_file

module Native_file: sig .. end

type stats = Unix.stats = {
   st_dev : int; (*Device number*)
   st_ino : int; (*Inode number*)
   st_kind : Unix.file_kind; (*Kind of the file*)
   st_perm : Unix.file_perm; (*Access rights*)
   st_nlink : int; (*Number of links*)
   st_uid : int; (*User id of the owner*)
   st_gid : int; (*Group ID of the file's group*)
   st_rdev : int; (*Device minor number*)
   st_size : int; (*Size in bytes*)
   st_atime : float; (*Last access time*)
   st_mtime : float; (*Last modification time*)
   st_ctime : float; (*Last status change time*)
}
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 : 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
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.