]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
feat: ulibc extensions for DOOM — mmap, munmap, ioctl, nanosleep, clock_gettime
authorTulio A M Mendes <[email protected]>
Thu, 12 Feb 2026 07:36:52 +0000 (04:36 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Feb 2026 02:44:55 +0000 (23:44 -0300)
commit4f02dac9b065b894446e0da4dcc79998699b96fe
tree2d52d34c15990babb47dabaac4859ab8956e25a7
parent584b03329012fbfbe8fcaae35d727577032fd794
feat: ulibc extensions for DOOM — mmap, munmap, ioctl, nanosleep, clock_gettime

Added userspace wrappers required for the DOOM port:
- sys/mman.h + mman.c: mmap() and munmap() for framebuffer mapping
- sys/ioctl.h + ioctl.c: ioctl() for framebuffer info queries
- time.h + time.c: nanosleep() and clock_gettime() for frame timing

All wrappers use the existing INT 0x80 syscall interface.
user/ulibc/include/sys/ioctl.h [new file with mode: 0644]
user/ulibc/include/sys/mman.h [new file with mode: 0644]
user/ulibc/include/time.h [new file with mode: 0644]
user/ulibc/src/ioctl.c [new file with mode: 0644]
user/ulibc/src/mman.c [new file with mode: 0644]
user/ulibc/src/time.c [new file with mode: 0644]