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

Closed
vicuna opened this issue Sep 14, 2005 · 2 comments
Closed

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

vicuna opened this issue Sep 14, 2005 · 2 comments
Assignees

Comments

@vicuna
Copy link

vicuna 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
OS:
Submission from: 213.68.136.226 (213.68.136.226)

Hi,

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.

Thanks,
Christoph Bauer

@vicuna
Copy link
Author

vicuna commented Jun 10, 2006

Comment author: @xavierleroy

See #4024

@vicuna
Copy link
Author

vicuna 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
Projects
None yet
Development

No branches or pull requests

2 participants