1Unix.LargeFile(3)                OCaml library               Unix.LargeFile(3)
2
3
4

NAME

6       Unix.LargeFile - File operations on large files.
7

Module

9       Module   Unix.LargeFile
10

Documentation

12       Module LargeFile
13        : sig end
14
15
16       File  operations on large files.  This sub-module provides 64-bit vari‐
17       ants of the functions Unix.lseek (for positioning a  file  descriptor),
18       Unix.truncate and Unix.ftruncate (for changing the size of a file), and
19       Unix.stat , Unix.lstat and Unix.fstat  (for  obtaining  information  on
20       files).   These  alternate  functions  represent positions and sizes by
21       64-bit integers (type int64 ) instead of regular integers (type int  ),
22       thus allowing operating on files whose sizes are greater than max_int .
23
24
25
26
27
28
29
30       val lseek : Unix.file_descr -> int64 -> Unix.seek_command -> int64
31
32
33
34
35       val truncate : string -> int64 -> unit
36
37
38
39
40       val ftruncate : Unix.file_descr -> int64 -> unit
41
42
43
44       type stats = {
45        st_dev : int ;  (* Device number *)
46        st_ino : int ;  (* Inode number *)
47        st_kind : Unix.file_kind ;  (* Kind of the file *)
48        st_perm : Unix.file_perm ;  (* Access rights *)
49        st_nlink : int ;  (* Number of links *)
50        st_uid : int ;  (* User id of the owner *)
51        st_gid : int ;  (* Group ID of the file's group *)
52        st_rdev : int ;  (* Device minor number *)
53        st_size : int64 ;  (* Size in bytes *)
54        st_atime : float ;  (* Last access time *)
55        st_mtime : float ;  (* Last modification time *)
56        st_ctime : float ;  (* Last status change time *)
57        }
58
59
60
61
62
63       val stat : string -> stats
64
65
66
67
68       val lstat : string -> stats
69
70
71
72
73       val fstat : Unix.file_descr -> stats
74
75
76
77
78
79
80OCamldoc                          2017-03-22                 Unix.LargeFile(3)
Impressum