Add a "conservative" build option #1
Labels
component:build
Build and CI improvements
component:kernel
Enhancements on the kernel side
enhancement
New feature or request
Right now, each syscall specification is defined with pretty much every possible error. This means that each syscall can fault with a wide variety of errors, but also that any given error might not make sense given the system's state and/or parameters passed to the syscall.
For example,
sendto(2)
specifiesEAGAIN
andEWOULDBLOCK
as potential errors, even when the underlying socket is blocking. It's unlikely that a target application would filter error codes and notice a nonsensical ones like the above, but it wouldn't hurt to have a "conservative" build mode that only generates faulty syscalls for a sensible subset of all possible errors.So, a spec like this:
would probably need to add a field like this:
To avoid duplication, we could just remove the
basic_errors
from the mainerrors
list and combine the two during codegen (when not building in conservative mode).The text was updated successfully, but these errors were encountered: