UoB-HPC / SimEng

The University of Bristol HPC Simulation Engine
https://uob-hpc.github.io/SimEng
Apache License 2.0
93 stars 20 forks source link

Set errno for simulated program #410

Open dANW34V3R opened 7 months ago

dANW34V3R commented 7 months ago

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."

FinnWilkinson commented 7 months ago

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

dANW34V3R commented 7 months ago

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