SchOS/kernel/sys
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Nexoniarz a4fbdb7437 epoll, eventfd, timerfd, signalfd
The set libwayland's event loop is made of, in kernel/sys/sys_event.c:
four kinds of descriptor with no inode, FD_EVENT, that read() drains
and poll() reports on. They were table entries returning ENOSYS that
read as done.

epoll registers (descriptor, file) pairs, so a closed descriptor
leaves the set; level- and edge-triggered, EPOLLONESHOT. Waiting is
poll()'s, a tick at a time. The old eventfd and signalfd numbers (284,
282) were aliased to the new calls and read flags from a garbage
register; they are their own entries now, with epoll_create and
epoll_pwait.

cmd/evtest checks each, then all four in one set. The plans are
brought up to date: everything Wayland was waiting on is built except
setsockopt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01S1giNvrHTrPMPw7V6x1kQ4
2026-10-24 10:59:52 +02:00
..
linux_abi.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_compat.c epoll, eventfd, timerfd, signalfd 2026-10-24 10:59:52 +02:00
sys_event.c epoll, eventfd, timerfd, signalfd 2026-10-24 10:59:52 +02:00
sys_fs.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_mem.c exec, mmap, musl: dynamic linking 2026-10-24 10:59:52 +02:00
sys_net.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_poll.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_proc.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
sys_sig.c signals: a blocked signal stays pending instead of killing 2026-10-24 10:59:52 +02:00
sys_time.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
syscall.c include: one folder per subsystem, and includes that name it 2026-10-23 15:05:12 +02:00
table.inc epoll, eventfd, timerfd, signalfd 2026-10-24 10:59:52 +02:00