]> 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)
commitf2a0ff093b814c8baf416324368fb15c677b37a7
treed252164ee9786e43b94e9579b2ca7e24a518e6f2
parent7b3453170010007ae76f833f2e93d2d9e3eef8c9
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