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

lib/posix-fdio: ENOTTY for unsupported tty ioctls #1301

Merged
merged 1 commit into from Feb 6, 2024

Conversation

andreittr
Copy link
Contributor

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

  • Read the contribution guidelines regarding submitting new changes to the project;
  • Tested your changes against relevant architectures and platforms;
  • Ran the checkpatch.uk on your commit series before opening this PR;
  • Updated relevant documentation.

Base target

  • Architecture(s): N/A
  • Platform(s): N/A
  • Application(s): N/A

Additional configuration

N/A

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>
@andreittr andreittr requested a review from a team as a code owner February 1, 2024 10:39
@github-actions github-actions bot added area/lib Internal Unikraft Microlibrary lang/c Issues or PRs to do with C/C++ labels Feb 1, 2024
@razvand razvand requested review from mogasergiu and StefanJum and removed request for a team February 2, 2024 08:17
@razvand razvand added this to the v0.16.2 (Telesto) milestone Feb 2, 2024
Copy link
Member

@mogasergiu mogasergiu left a 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

Copy link
Member

@StefanJum StefanJum left a 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

Copy link
Contributor

@razvand razvand left a 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

@razvand razvand added the merge Label to trigger merge action label Feb 6, 2024
@unikraft-bot unikraft-bot changed the base branch from staging to staging-1301 February 6, 2024 17:23
@unikraft-bot unikraft-bot merged commit 68766a6 into unikraft:staging-1301 Feb 6, 2024
13 checks passed
unikraft-bot pushed a commit that referenced this pull request Feb 6, 2024
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
@unikraft-bot unikraft-bot added ci/merged Merged by CI and removed merge Label to trigger merge action labels Feb 6, 2024
@andreittr andreittr deleted the ttr/ioctl-notty branch February 7, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/lib Internal Unikraft Microlibrary ci/merged Merged by CI lang/c Issues or PRs to do with C/C++
Projects
Development

Successfully merging this pull request may close these issues.

None yet

5 participants