SimEng icon indicating copy to clipboard operation
SimEng copied to clipboard

Explore encoding correct errno values in the return value of SimEng syscalls.

Open rahahahat opened this issue 2 years ago • 0 comments

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.

rahahahat avatar Jun 07 '23 11:06 rahahahat