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

add execv #97

Merged
merged 3 commits into from
Oct 29, 2021
Merged

add execv #97

merged 3 commits into from
Oct 29, 2021

Conversation

nivkner
Copy link
Contributor

@nivkner nivkner commented Oct 28, 2021

this adds execv to runtime, since its use is limited without fork which is also in runtime.

@nivkner nivkner force-pushed the add_execvp branch 2 times, most recently from 7140970 to 87235ca Compare October 28, 2021 20:16
@nivkner nivkner changed the title add execvp add execv Oct 28, 2021
@nivkner nivkner force-pushed the add_execvp branch 2 times, most recently from c905924 to 96e997c Compare October 28, 2021 20:39
Copy link
Member

@sunfishcode sunfishcode left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was a little surprising at first to see two allocations for the argv array, but I now see what the code is doing and it makes sense :-).

src/runtime.rs Show resolved Hide resolved
src/imp/linux_raw/syscalls.rs Outdated Show resolved Hide resolved
src/imp/linux_raw/syscalls.rs Outdated Show resolved Hide resolved
src/runtime.rs Outdated Show resolved Hide resolved
@sunfishcode sunfishcode merged commit 334c4cf into bytecodealliance:main Oct 29, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants