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