SimEng
SimEng copied to clipboard
Explore encoding correct errno values in the return value of SimEng syscalls.
Related to #326
The errno global variable, used to identify the specific error produced by a syscall, is glibc defined. The system-defined syscalls encode error codes in their return value which the glibc wrappers extract and assign to the errno global variable. The glibc wrappers also use the errno value in surrounding logic.