Skip to content

Move libc termios bindings from POSIX to Linux#3251

Closed
hovsater wants to merge 4 commits into
c3lang:masterfrom
hovsater:termios-linux
Closed

Move libc termios bindings from POSIX to Linux#3251
hovsater wants to merge 4 commits into
c3lang:masterfrom
hovsater:termios-linux

Conversation

@hovsater
Copy link
Copy Markdown
Contributor

Note: Based on #3248. Merge that one first.

This moves the current termios implementation out of lib/std/libc/os/posix.c3 and into lib/std/libc/os/linux.c3. The definitions were not generic POSIX definitions. They match Linux/glibc specific termios constants, control-character indexes, and struct termios layout. lib/std/libc/termios.c3 is also narrowed from POSIX to Linux so the API is only exposed for the platform it currently matches.

@hovsater hovsater changed the title Termios linux Move libc termios bindings from POSIX to Linux May 22, 2026
@hovsater
Copy link
Copy Markdown
Contributor Author

I'll rebase this branch on master once #3248 is merged.

hovsater added 4 commits May 25, 2026 09:24
c_cc is not an array of Cc members. The Cc enum are the index positions.
The value at a given index position is an arbitrary byte value.
@hovsater
Copy link
Copy Markdown
Contributor Author

@ManuLinares and I decided that we'll merge all work into a single PR. See #3254 instead.

@hovsater hovsater closed this May 25, 2026
@hovsater hovsater deleted the termios-linux branch May 25, 2026 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant