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       val lseek : Unix.file_descr -> int64 -> Unix.seek_command -> int64
30
31       See Unix.lseek .
32
33
34
35       val truncate : string -> int64 -> unit
36
37       See Unix.truncate .
38
39
40
41       val ftruncate : Unix.file_descr -> int64 -> unit
42
43       See Unix.ftruncate .
44
45
46       type stats = {
47        st_dev : int ;  (* Device number
48        *)
49        st_ino : int ;  (* Inode number
50        *)
51        st_kind : Unix.file_kind ;  (* Kind of the file
52        *)
53        st_perm : Unix.file_perm ;  (* Access rights
54        *)
55        st_nlink : int ;  (* Number of links
56        *)
57        st_uid : int ;  (* User id of the owner
58        *)
59        st_gid : int ;  (* Group ID of the file's group
60        *)
61        st_rdev : int ;  (* Device ID (if special file)
62        *)
63        st_size : int64 ;  (* Size in bytes
64        *)
65        st_atime : float ;  (* Last access time
66        *)
67        st_mtime : float ;  (* Last modification time
68        *)
69        st_ctime : float ;  (* Last status change time
70        *)
71        }
72
73
74
75
76
77       val stat : string -> stats
78
79
80
81
82       val lstat : string -> stats
83
84
85
86
87       val fstat : Unix.file_descr -> stats
88
89
90
91
92
93
94OCamldoc                          2019-07-30                 Unix.LargeFile(3)
Impressum