Open IanSeyler opened 11 years ago
This will lead to some difficult to track down problems if the OS crashes when you have a flag set while making a syscall, while this behaviour is not documented
I'd recommend to clear the direction flag on the functions that would break and declare in the API that no assumptions about the direction flag have to be made after using said functions
or alternatively if the direction flag has a deterministic state after making a syscall we can just document it
Some functions will break if the direction flag is set.
Should this be left to the app programmer to verify? Or should the OS save/restore the state of the flag on all calls?