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

Implement getenv, putenv etc. #302

Open
robdockins opened this issue Aug 12, 2019 · 0 comments
Open

Implement getenv, putenv etc. #302

robdockins opened this issue Aug 12, 2019 · 0 comments

Comments

@robdockins
Copy link
Contributor

PR #290 implemented a dummy version of getenv that simply always returns NULL, which simulates an empty collection of environment variables.

We should instead provide a realistic implementation of getenv that, at a minimum, provides an immutable set of environment variables that can be provided during simulator setup.

Ideally, we would also allow a full implementation of setenv, etc. However, doing this properly requires would require additional support for symbolic string values, and probably special support from the LLVM memory model for handling null-terminated symbolic strings.

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