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

Changes to some rust syscall handlers #2796

Merged
merged 4 commits into from
Mar 21, 2023

Conversation

stevenengler
Copy link
Contributor

This PR moves some code around, and moves where we set a syscall condition's active file. This is to prepare for supporting readv/writev/sendmsg/recvmsg.

@stevenengler stevenengler self-assigned this Mar 20, 2023
@github-actions github-actions bot added the Component: Main Composing the core Shadow executable label Mar 20, 2023
I think it makes more sense to set the `SysCallCondition`s active file at the
top-level of each syscall handler rather than putting it in helpers. This means
that we don't need to pass the `OpenFile` all the way through, and means that
any helpers or the file methods don't need to worry about setting this
themselves when they want to return a blocking `SyscallError`.
@stevenengler stevenengler merged commit ca75e27 into shadow:main Mar 21, 2023
@stevenengler stevenengler deleted the readv-writev branch March 21, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Main Composing the core Shadow executable
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants