DynamoRIO / DynamoRIO/dynamorio

return error codes for platform-independent API routines?

Open
#260 1 comment 0 reactions 0 assignees View on GitHub
Migrated Priority-Medium Type-Feature
Dominant language
C
Stars
3.2k
Forks
629
Avg merge
2d 15h
Merged PRs (30d)
31

Description

_From [derek.br...@gmail.com](https://code.google.com/u/117968039472581148324/) 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.