apex
apex copied to clipboard
Apex RTOS - A (somewhat) Linux compatible real time operating system
gcc correctly warns about a couple of dodgy casts when building Apex with -Wcast-qual. ``` In file included from /home/patrick/src/motec/adr2/apex/sys/include/arch.h:39, from /home/patrick/src/motec/adr2/apex/sys/kern/syslog.c:8: /home/patrick/src/motec/adr2/apex/sys/kern/syslog.c: In function 'syslog_output': /home/patrick/src/motec/adr2/apex/sys/include/compiler.h:108:4: warning: to be...
sys/fs/syscalls.cpp validates that arg points to valid memory and is readable/writable for the correct size, however userspace could still pass us a badly aligned pointer.
- maybe we can use this as an opportunity to switch to std::chrono? - audit all users?
Long term the vfs layer needs a rewrite. It would still be useful to support poll/select before then.