-
Notifications
You must be signed in to change notification settings - Fork 18k
x/sys/unix: add Mremap #60409
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
Comments
This proposal has been added to the active column of the proposals project |
mremap isn't in POSIX, so not all UNIXes support it. In particular, it looks like at least darwin and openbsd don't implement it. |
I thought syscall was frozen? Don't these changes belong in x/sys now? |
Yes, looks like this support is copied into x/sys/unix. You're right, that is what we should change. Thanks. |
We do use syscall.Mmap from within std, so it's OK to update if necessary. That said, std doesn't need Mremap so adding it in x/sys/unix instead is fine. |
Marking as likely accept for x/sys/unix. We can change syscall if we need it for something in the main distribution but we probably don't need it otherwise. |
Based on the discussion above, this proposal seems like a likely accept. |
No change in consensus, so accepted. 🎉 |
I will work on this :) |
@anton-kuklin Go for it. Thanks. |
Change https://go.dev/cl/502715 mentions this issue: |
For golang/go#60409 Change-Id: I75a9732ee996f0aeb91599d80803f96ada468c27 GitHub-Last-Rev: c348b61 GitHub-Pull-Request: #164 Reviewed-on: https://go-review.googlesource.com/c/sys/+/502715 Auto-Submit: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Bryan Mills <bcmills@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com>
Solved! |
I guess we can close this issue? |
We now have support for Linux, but not yet for other operating systems that have a |
Change https://go.dev/cl/508397 mentions this issue: |
syscall provides a type-safe Mmap and Munmap but is missing Mremap. We should add it.
See #58625 (comment).
The text was updated successfully, but these errors were encountered: