]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
posix: devfs with /dev/null and /dev/tty
authorTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 02:55:41 +0000 (23:55 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 02:55:41 +0000 (23:55 -0300)
commite632e7b8f7d717a38362b84c3ef3dc78d752970f
treef4ddad0f71bbb30a7be2aaebdb5f3e7decde970c
parente96fa4427db63b32924387b915a7a5e2cc723d2e
posix: devfs with /dev/null and /dev/tty

Add a minimal devfs mounted at /dev providing /dev/null and /dev/tty char devices. Implement tty_read_kbuf/tty_write_kbuf to support VFS-backed tty IO and allow open/read/write through FS_CHARDEVICE nodes. Add userland smoke tests.
include/devfs.h [new file with mode: 0644]
include/tty.h
src/kernel/devfs.c [new file with mode: 0644]
src/kernel/init.c
src/kernel/syscall.c
src/kernel/tty.c
user/init.c