MantisBT - OCaml
View Issue Details
0004024OCaml~DO NOT USE (was: OCaml general)public2006-05-16 21:262007-02-21 16:19
mottl 
xleroy 
normalfeaturealways
closedfixed 
3.09.2 
3.10+dev 
0004024: Memory-mapping of bigarrays with offsets missing
It is currently impossible to memory-map file portions with a non-zero offset (64 bits would be required, too!) with the Bigarray module. This is quite unfortunate, because very large files that exceed the integer limits of OCaml on 32bit platforms are not fully accessible in a memory-mapped way then.

The current seek position of the file descriptor could eventually be consulted for that in the current code without changing the API. This would be a fairly trivial change.
No tags attached.
child of 0003790closed xleroy Wish: Bigarray.*.map_file should set an offset 
Issue History
2006-05-16 21:26mottlNew Issue
2006-05-16 21:49mottlNote Added: 0003643
2006-05-19 14:45berkeNote Added: 0003646
2006-06-10 16:20xleroyNote Added: 0003670
2006-06-10 16:20xleroyAssigned To => xleroy
2006-06-10 16:20xleroyStatusnew => resolved
2006-06-10 16:20xleroyResolutionopen => fixed
2006-06-10 16:29xleroyRelationship addedchild of 0003790
2007-02-21 16:19xleroyStatusresolved => closed
2007-02-21 16:19xleroyFixed in Version => 3.10+dev
2017-02-23 16:36doligezCategoryOCaml general => -OCaml general
2017-03-03 17:55doligezCategory-OCaml general => -(deprecated) general
2017-03-03 18:01doligezCategory-(deprecated) general => ~deprecated (was: OCaml general)
2017-03-06 17:04doligezCategory~deprecated (was: OCaml general) => ~DO NOT USE (was: OCaml general)

Notes
(0003643)
mottl   
2006-05-16 21:49   
The mmap64 system call would have to be used if 64bit offsets should be supported.
(0003646)
berke   
2006-05-19 14:45   
I second this. However Array*.sub can be used for small files.
(0003670)
xleroy   
2006-06-10 16:20   
Tentative implementation in CVS trunk (Bigarray.*.map_subfile functions).
Windows implementation is untested and probably wrong.