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