-
Notifications
You must be signed in to change notification settings - Fork 571
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add dr_syscall_get_result_ex() and dr_syscall_set_result_ex() to support properly getting and setting the return value of system calls in MacOS, where CF indicates success and positive errno is used. These routines both take in a new data structure that includes support for 32-bit system calls that return 64-bit values, as 32-bit return values do not have the upper bits cleared, making a syscall-wide 64-bit return value not feasible. It is up to the user to know which syscalls have which return types, though (they can use drsyscall if they want automated result types). The data structure includes errno support, allowing for cross-platform errno reading and writing without worrying about whether it should be negated or not. Added a test to client.strace. SVN-Revision: 2502
- Loading branch information
1 parent
3fc5973
commit 1a9abc3
Showing
9 changed files
with
332 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.