Skip to content

solarish: add missing termios flags - #5711

Open
extrowerk wants to merge 1 commit into
rust-lang:mainfrom
extrowerk:illumos-termios
Open

extrowerk wants to merge 1 commit into
rust-lang:mainfrom
extrowerk:illumos-termios

Conversation

@extrowerk

@extrowerk extrowerk commented Nov 5, 2026 •

Copy link
Copy Markdown

Adds the missing output delay masks and values (NLDLY, CRDLY, TABDLY, BSDLY, VTDLY, FFDLY and their variants), XTABS, the XCASE local flag, flow-control aliases (CRTS_IFLOW, CCTS_OFLOW), PAREXT, IBSHIFT and NCC from <sys/termios.h>.
This brings illumos termios support closer to Linux and BSD, allowing wrappers such as nix to expose a consistent set of flags.

References:
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L65-L71
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L224-L251
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L279-L297

Testing: All four illumos/Solaris targets pass cargo check -Dwarnings. libc-test, semver, constant checks and ci/style.py pass. Clang tests also pass on OmniOS r151060 (x86_64).
Assisted-by: LLM

@rustbot

rustbot commented Nov 5, 2026

Copy link
Copy Markdown
Collaborator

Some changes occurred in a solarish module

cc @jclulow, @pfmooney

@rustbot rustbot added O-solarish O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Nov 5, 2026
@tgross35

tgross35 commented Nov 5, 2026

Copy link
Copy Markdown
Member

Rewrite commit messages and PR descriptions by hand, then you may unmark as a draft. See https://forge.rust-lang.org/policies/llm-usage.html#-banned.

@tgross35
tgross35 marked this pull request as draft November 5, 2026 22:52
@extrowerk
extrowerk marked this pull request as ready for review November 14, 2026 10:23
@rustbot

This comment has been minimized.

@rustbot

This comment has been minimized.

Adds the missing output delay masks and values (NLDLY, CRDLY, TABDLY, BSDLY, VTDLY, FFDLY and their variants), XTABS, the XCASE local flag, flow-control aliases (CRTS_IFLOW, CCTS_OFLOW), PAREXT, IBSHIFT and NCC from <sys/termios.h>.
This brings illumos termios support closer to Linux and BSD, allowing wrappers such as nix to expose a consistent set of flags.

References:
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L65-L71
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L224-L251
https://github.com/illumos/illumos-gate/blob/b56614870515295c253babb2b10fffdd3c60fdbe/usr/src/uts/common/sys/termios.h#L279-L297

Testing: All four illumos/Solaris targets pass cargo check -Dwarnings. libc-test, semver, constant checks and ci/style.py pass. Clang tests also pass on OmniOS r151060 (x86_64).
Assisted-by: LLM
@rustbot

rustbot commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

O-solarish O-unix S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants