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 writev syscall in stdio #134

Merged
merged 1 commit into from
Jul 20, 2024

Conversation

xxuejie
Copy link
Collaborator

@xxuejie xxuejie commented Jul 19, 2024

musl actually uses writev instead of write syscall to print to stdout. Adding this new syscall implementation makes ckb-debugger nicer to musl. Note that musl actually issues ioctl before issuing writev syscall as well, however, ioctl is one messy component, it might be better that we keep it simple so the debugger only handles writev for now. We can hijack ioctl like we do now in musl.

musl actually uses writev instead of write syscall to print to stdout.
Adding this new syscall implementation makes ckb-debugger nicer to musl.
Note that musl actually issues ioctl before issuing writev syscall as
well, however, ioctl is one messy component, it might be better that we
keep it simple so the debugger only handles writev for now. We can
hijack ioctl like we do now in musl.
@xxuejie xxuejie requested a review from mohanson July 19, 2024 06:21
@mohanson mohanson merged commit 582ed56 into nervosnetwork:develop Jul 20, 2024
1 check passed
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.

3 participants