OCaml library : UnixLabels.LargeFile (original) (raw)

module LargeFile: sig .. end


val lseek : [UnixLabels.file_descr](UnixLabels.html#TYPEfile%5Fdescr) -> int64 -> mode:[UnixLabels.seek_command](UnixLabels.html#TYPEseek%5Fcommand) -> int64

val truncate : string -> len:int64 -> unit

val ftruncate : [UnixLabels.file_descr](UnixLabels.html#TYPEfile%5Fdescr) -> len:int64 -> unit

type ``stats = [Unix.LargeFile.stats](Unix.LargeFile.html#TYPEstats) = {

| | st_dev : int; | (* | Device number | *) | | ----------------------------------------------------------------------- | --- | ---------------------------- | --- | | | st_ino : int; | (* | Inode number | *) | | | st_kind : UnixLabels.file_kind; | (* | Kind of the file | *) | | | st_perm : UnixLabels.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 ID (if special file) | *) | | | st_size : int64; | (* | Size in bytes | *) | | | st_atime : float; | (* | Last access time | *) | | | st_mtime : float; | (* | Last modification time | *) | | | st_ctime : float; | (* | Last status change time | *) |

}

val stat : string -> [stats](UnixLabels.LargeFile.html#TYPEstats)

val lstat : string -> [stats](UnixLabels.LargeFile.html#TYPEstats)

val fstat : [UnixLabels.file_descr](UnixLabels.html#TYPEfile%5Fdescr) -> [stats](UnixLabels.LargeFile.html#TYPEstats)