Skip to content

CheerpX returns EINVAL for unimplemented TCGETS2/TCSETS2 #214

@NiltonVolpato

Description

@NiltonVolpato

CheerpX doesn't implement the new TCGETS2/TCSETS2 and only supports TCGETS/TCSETS. However it notifies the caller by returning EINVAL (which implies this is a supported call but the argument you used is invalid) instead of the more appropriate ENOTTY (which means this operation does not apply).

Regardless of this being a bug or not, it's pretty uncommon and non-standard, especially for linux. So, returning ENOTTY would be more well supported.

See this PR, it has more details:
bytecodealliance/rustix#1573

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions