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

OpenBSD Support #17

Open
hargoniX opened this issue Sep 21, 2021 · 1 comment
Open

OpenBSD Support #17

hargoniX opened this issue Sep 21, 2021 · 1 comment

Comments

@hargoniX
Copy link

I'd like to build OpenBSD support for rustup (which has this crate as a dependency). However it doesn't compile at the moment since as noted in your libc comments OpenBSD doesn't have the RLIMIT_AS constant. I did a little bit of digging and it appears to me that OpenBSD doesn't have support at all for determining the limit of the virtual memory address space size. Thus I would propose to only request the RLIMIT_DATA (which is supported https://github.com/openbsd/src/blob/master/sys/sys/resource.h#L84) for OpenBSD and use that as a limit. If this seems reasonable I'd happily do a PR for it.

@kinnison
Copy link
Collaborator

kinnison commented Oct 9, 2021

I guess it might make sense for OpenBSD. If you do a PR, I'd suggest ensuring that behaviour doesn't change for the other platforms though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants