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

10.10 md #48

Open
ylme opened this issue Sep 11, 2019 · 0 comments
Open

10.10 md #48

ylme opened this issue Sep 11, 2019 · 0 comments

Comments

@ylme
Copy link

ylme commented Sep 11, 2019

I think that this question want to test dup2 function.

if (argc == 2) {
    int fd = Open(argv[1], O_RDONLY, 0);
    dup2(fd, STDIN_FILENO)
}
// before Rio_readinitb
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

1 participant