]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
posix: poll syscall (pipes + devfs tty/null)
authorTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:31:57 +0000 (00:31 -0300)
committerTulio A M Mendes <[email protected]>
Sun, 8 Feb 2026 03:31:57 +0000 (00:31 -0300)
commitc556f7db546ad36bb6cb72801dfbe0eaba2b7236
tree5ce7a80395aab6aa40afa75c562563b0f20ee822
parent53a54ae7ef14d633882ec94e5e827ff512414e76
posix: poll syscall (pipes + devfs tty/null)

Add a minimal poll() syscall (POLLIN/POLLOUT) with timeout semantics (0 non-blocking, <0 blocking). Support pipe endpoints and devfs char devices (/dev/null,/dev/tty) and add userland smoke tests.
include/syscall.h
include/tty.h
src/kernel/syscall.c
src/kernel/tty.c
user/init.c