Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wish: Bigarray.*.map_file should set an offset #3790

vicuna opened this Issue Sep 14, 2005 · 2 comments


None yet
2 participants
Copy link

commented Sep 14, 2005

Original bug ID: 3790
Reporter: administrator
Assigned to: @xavierleroy
Status: closed (set by @xavierleroy on 2007-02-21T15:19:15Z)
Resolution: fixed
Priority: normal
Severity: feature
Version: 3.10+dev
Category: ~DO NOT USE (was: OCaml general)
Parent of: #3791 #4024

Bug description

Full_Name: Christoph Bauer
Version: 3.08.3
Submission from: (


a possibility to set the offset in a bigarray-mmap file
would be very useful. Either bigarray_map_file should
get 6 parameters or the currpos value from the file
descriptor could be used. The main drawback for my
wish is, that it may breaks existing ocaml programs.

Furthermore a wrapper for getpagesize() is needed
to calculate a valid offset.

Christoph Bauer


This comment has been minimized.

Copy link
Collaborator Author

commented Jun 10, 2006

Comment author: @xavierleroy

See #4024


This comment has been minimized.

Copy link
Collaborator Author

commented Feb 21, 2007

Comment author: @xavierleroy

Feature implemented in 3.10 as an optional argument to the map_file functions. The argument gives the file offset for the beginning of the file data.
Arbitrary offsets (not necessarily page-aligned) are supported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.