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

Please provide mmap related api #40403

Closed
hackwaly opened this issue Jan 30, 2020 · 4 comments
Closed

Please provide mmap related api #40403

hackwaly opened this issue Jan 30, 2020 · 4 comments
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. library-ffi type-enhancement A request for a change that isn't a bug

Comments

@hackwaly
Copy link

I need mmap related api. Something hard to do without that.

Perhaps best place them in dart:io package.

@lrhn lrhn added library-ffi type-enhancement A request for a change that isn't a bug labels Jan 31, 2020
@lrhn
Copy link
Member

lrhn commented Jan 31, 2020

Sounds like something that would be related to dart:ffi.

@srawlins srawlins added the area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. label Jan 31, 2020
@vsmenon vsmenon added the area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. label Feb 7, 2020
@mkustermann
Copy link
Member

Correct, withdart:ffi you can use mmap.

We have already some testing code which uses mmap, see vmspecific_highmem_32bit_test.dart.

The only caveat atm is that if libc calls fail, there's no access to the failure reason via errno atm: There's an open issue for it #38832

@mkustermann
Copy link
Member

/cc @dcharkes

@mkustermann
Copy link
Member

@hackwaly As mentioned above, it's already possible now to lookup mmap in libc and call it. We do not plan on adding this to any of our dart:* at this point in time. The only issue is not being able to retrieve errno for possible retries - this is already tracked at #38832.

So I hope it's ok if I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-core-library SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries. area-vm Use area-vm for VM related issues, including code coverage, and the AOT and JIT backends. library-ffi type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants