Skip to content

Add baudrate constants #528

Closed
Closed
@berkowski

Description

@berkowski

The only portable way to set baudrates in termios structs is through the B* constants defined for each platform. Given the use of ctest in libc it was suggested in nix-rust/nix#518 that these constants might be better defined libc itself, with nix providing access through a type-safe enum.

Seems straight forward (prior art: https://github.com/dcuddeback/termios-rs) and fits the scope.

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