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
lib/posix-fdio: ENOTTY for unsupported tty ioctls #1301
Conversation
This change makes ioctl universally return -ENOTTY for tty-specific ioctls that are not supported by the file driver, which it in turn signals by returning -ENOSYS. Checkpatch-Ignore: ENOSYS Signed-off-by: Andrei Tatar <andrei@unikraft.io>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-by: Sergiu Moga sergiu@unikraft.io
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All good, thanks.
Reviewed-by: Stefan Jumarea stefanjumarea02@gmail.com
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved-by: Razvan Deaconescu razvand@unikraft.io
This change makes ioctl universally return -ENOTTY for tty-specific ioctls that are not supported by the file driver, which it in turn signals by returning -ENOSYS. Checkpatch-Ignore: ENOSYS Signed-off-by: Andrei Tatar <andrei@unikraft.io> Reviewed-by: Sergiu Moga <sergiu@unikraft.io> Reviewed-by: Stefan Jumarea <stefanjumarea02@gmail.com> Approved-by: Razvan Deaconescu <razvand@unikraft.io> GitHub-Closes: #1301
Description of changes
This change makes ioctl universally return -ENOTTY for tty-specific ioctls that are not supported by the file driver, which it in turn signals by returning -ENOSYS.
Prerequisite checklist
checkpatch.uk
on your commit series before opening this PR;Base target
Additional configuration
N/A