module LargeFile: sig
.. end
This sub-module provides 64-bit variants of the functions
UnixLabels.lseek
(for positioning a file descriptor),
UnixLabels.truncate
and UnixLabels.ftruncate
(for changing the size of a file),
and UnixLabels.stat
, UnixLabels.lstat
and UnixLabels.fstat
(for obtaining information on files). These alternate functions represent
positions and sizes by 64-bit integers (type int64
) instead of
regular integers (type int
), thus allowing operating on files
whose sizes are greater than max_int
.
val lseek : UnixLabels.file_descr -> int64 -> mode:UnixLabels.seek_command -> int64
val truncate : string -> len:int64 -> unit
val ftruncate : UnixLabels.file_descr -> len:int64 -> unit
type
stats = Unix.LargeFile.stats
= {
|
st_dev : int ; |
|
st_ino : int ; |
|
st_kind : UnixLabels.file_kind ; |
|
st_perm : UnixLabels.file_perm ; |
|
st_nlink : int ; |
|
st_uid : int ; |
|
st_gid : int ; |
|
st_rdev : int ; |
|
st_size : int64 ; |
|
st_atime : float ; |
|
st_mtime : float ; |
|
st_ctime : float ; |
}
val stat : string -> stats
val lstat : string -> stats
val fstat : UnixLabels.file_descr -> stats