summaryrefslogtreecommitdiff
path: root/base/errors_unix.cpp
AgeCommit message (Collapse)Author
2020-05-19Migrate system/core/base to system/libbaseBaligh Uddin
BUG: 148941208 test: TH Change-Id: I1134f1e9e968b9273748e2483bea8d25e5c9e994
2019-08-08Add header that defines strerror()Anatol Pomazau
It helps to fix a compilation issue with host libc: core/base/errors_unix.cpp:25:10: error: use of undeclared identifier 'strerror' return strerror(error_code); ^ Change-Id: I71d4221cc1bfa6f0cc764b40b6b28159994b8e04
2016-02-01base: add SystemErrorCodeToString() function.David Pursell
Pulls the Windows error string generation out of adb into libbase so that it can be used by fastboot as well. Also makes a Unix equivalent that just wraps strerror() so that upcoming fastboot error reporting code can be platform-independent. The intent here is just to provide a portable way to report an error to the user. More general cross-platform error handling is out of scope. Bug: http://b/26236380 Change-Id: I5a784a844775949562d069bb41dcb0ebd13a32bc