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

NAME

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

Module

9       Module   UnixLabels.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 UnixLabels.lseek (for positioning a file descrip‐
18       tor),  UnixLabels.truncate  and  UnixLabels.ftruncate (for changing the
19       size of a file), and UnixLabels.stat  ,  UnixLabels.lstat  and  UnixLa‐
20       bels.fstat (for obtaining information on files).  These alternate func‐
21       tions represent positions and sizes by 64-bit integers  (type  int64  )
22       instead  of  regular  integers  (type int ), thus allowing operating on
23       files whose sizes are greater than max_int .
24
25
26
27
28
29
30       val lseek : UnixLabels.file_descr -> int64 -> mode:UnixLabels.seek_com‐
31       mand -> int64
32
33
34
35
36       val truncate : string -> len:int64 -> unit
37
38
39
40
41       val ftruncate : UnixLabels.file_descr -> len:int64 -> unit
42
43
44
45       type stats = Unix.LargeFile.stats = {
46        st_dev : int ;  (* Device number
47        *)
48        st_ino : int ;  (* Inode number
49        *)
50        st_kind : UnixLabels.file_kind ;  (* Kind of the file
51        *)
52        st_perm : UnixLabels.file_perm ;  (* Access rights
53        *)
54        st_nlink : int ;  (* Number of links
55        *)
56        st_uid : int ;  (* User id of the owner
57        *)
58        st_gid : int ;  (* Group ID of the file's group
59        *)
60        st_rdev : int ;  (* Device ID (if special file)
61        *)
62        st_size : int64 ;  (* Size in bytes
63        *)
64        st_atime : float ;  (* Last access time
65        *)
66        st_mtime : float ;  (* Last modification time
67        *)
68        st_ctime : float ;  (* Last status change time
69        *)
70        }
71
72
73
74
75
76       val stat : string -> stats
77
78
79
80
81       val lstat : string -> stats
82
83
84
85
86       val fstat : UnixLabels.file_descr -> stats
87
88
89
90
91
92
93OCamldoc                          2021-01-26           UnixLabels.LargeFile(3)
Impressum