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; |
}
Last status change time
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 -> stats
Return the information for the file associated with the given
descriptor.
val lseek : Unix.file_descr -> int -> mode:Unix.seek_command -> int
val truncate : string -> len:int -> unit
val ftruncate : Unix.file_descr -> len:int -> unit