SimEng icon indicating copy to clipboard operation
SimEng copied to clipboard

Set errno for simulated program

Open dANW34V3R opened this issue 1 year ago • 2 comments

Currently we simulate system calls. On hardware these often set the errno variable which the user space program can inspect to gain information about what happened during the call. We do not set this value for any system call which may effect the behaviour of simulated programs. This should be implemented.

https://man7.org/linux/man-pages/man3/errno.3.html

"The error numbers that correspond to each symbolic name vary across UNIX systems, and even across different architectures on Linux."

dANW34V3R avatar Apr 19 '24 10:04 dANW34V3R

This seems like a duplicate of Issue #328 ? Or at the very least these issues should be tackled together

FinnWilkinson avatar Apr 19 '24 11:04 FinnWilkinson

Yes, this looks like a duplicate. Feel free to close it

dANW34V3R avatar Apr 19 '24 12:04 dANW34V3R