A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
Many of the system call wrappers in unistd already use the constants defined in the <syscall_nums.h> header file. This patch makes that consistent across all of the functions in unistd.
Testing:
Double-checked that each named constant's value was the same as the magic number before replacing it in source code.
Clean compile and boot. Played around with user commands in /bin which exercise various system calls. System's still stable.
Summary
Many of the system call wrappers in
unistd
already use the constants defined in the<syscall_nums.h>
header file. This patch makes that consistent across all of the functions inunistd
.Testing:
Double-checked that each named constant's value was the same as the magic number before replacing it in source code.
Clean compile and boot. Played around with user commands in
/bin
which exercise various system calls. System's still stable.