]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: VMIN/VTIME termios fields for non-canonical TTY reads
authorTulio A M Mendes <[email protected]>
Tue, 10 Feb 2026 13:23:13 +0000 (10:23 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:20:50 +0000 (23:20 -0300)
commitfa5236fd587fbf94b118b821f72bb95e8df1bdb6
tree138f20228a6231a9da0e3f3a8fbefc659c586881
parent2b248afd44d0779fa7df035aeae77d4166e4d739
feat: VMIN/VTIME termios fields for non-canonical TTY reads

- Added c_cc[NCCS] array to struct termios with VMIN/VTIME indices
- TCGETS/TCSETS now get/set c_cc values
- tty_read_kbuf implements full POSIX non-canonical semantics:
  VMIN=0,VTIME=0: poll (return immediately)
  VMIN>0,VTIME=0: block until VMIN chars available
  VMIN=0,VTIME>0: timeout read (tenths of second)
  VMIN>0,VTIME>0: block with inter-char timeout
- tty_read refactored to delegate to tty_read_kbuf (no duplication)
- Default: VMIN=1, VTIME=0 (standard blocking single-char read)
- cppcheck clean, 19/19 smoke tests pass
include/tty.h
src/kernel/tty.c