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

syscall: fix ioctl return 0 but isatty() needs non zero #48

Merged
merged 3 commits into from
May 8, 2024

Conversation

luodeb
Copy link

@luodeb luodeb commented May 8, 2024

在跑python脚本时,python进入交互模式。原因是isatty()调用ioctl,request参数为TIOCGWINSZ,当返回值为0时进入交互模式;非零时进入脚本模式。

主要改动:
修改trait FileIO的ioctl返回类型;
增加filedesc的ioctl实现;
增加stdout, stderr的ioctl实现;
增加syscall SYMLINKAT,直接返回Ok(0)

Copy link

@scPointer scPointer left a comment

Choose a reason for hiding this comment

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

修改情况参考 #45

@scPointer scPointer merged commit d522a74 into Arceos-monolithic:main May 8, 2024
17 checks 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