2 ms·
Please explain better ways for a syscall to return an error that negative status, and explain how OS other than Linux get it right.
by willvarfar 12y ago
Please explain better ways for a syscall to return an error that negative status, and explain how OS other than Linux get it right.
- justincormack 12y agoIts Linux so you don't even need to look at a different OS. Each architecture is different. PowerPC returns the return value and error code in different registers which is very clean.
- lelf 12y agoBy setting cpu flag for example. Pretty standard way.