module Native_file:sig..end
typestats =Unix.stats= {
|
st_dev : |
(* |
Device number
| *) |
|
st_ino : |
(* |
Inode number
| *) |
|
st_kind : |
(* |
Kind of the file
| *) |
|
st_perm : |
(* |
Access rights
| *) |
|
st_nlink : |
(* |
Number of links
| *) |
|
st_uid : |
(* |
User id of the owner
| *) |
|
st_gid : |
(* |
Group ID of the file's group
| *) |
|
st_rdev : |
(* |
Device minor number
| *) |
|
st_size : |
(* |
Size in bytes
| *) |
|
st_atime : |
(* |
Last access time
| *) |
|
st_mtime : |
(* |
Last modification time
| *) |
|
st_ctime : |
(* |
Last status change time
| *) |
UnixLabels.stat calls.val stat : string -> statsval lstat : string -> statsUnixLabels.stat, but in case the file is a symbolic link,
return the information for the link itself.val fstat : Core_unix.File_descr.t -> statsval 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.tUnixLabels.stat, but in case the file is a symbolic link,
return the information for the link itself.