DynamoRIO / dynamorio

Dynamic Instrumentation Tool Platform
Other
2.66k stars 562 forks source link

return error codes for platform-independent API routines? #260

Open derekbruening opened 9 years ago

derekbruening commented 9 years ago

From derek.br...@gmail.com on February 17, 2010 15:52:27

from an email:

Unfortunately, primarily in order to present a platform-independent interface, there is no error code returned. I've wanted dr_create_dir() to return error codes in the past as well (though for my purposes supporting dr_directory_exists() on Linux as well as Windows would suffice): looks like you want them for dr_open_file().

it's not clear what the best solution is: whether to define a platform-independent set of error codes and translate, or just have a way to get the platform-specific code and consider it a corner case part of the API

Original issue: http://code.google.com/p/dynamorio/issues/detail?id=260

derekbruening commented 9 years ago

From bruen...@google.com on August 02, 2011 10:46:19

Issue 514 has been merged into this issue.