diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2016-08-23 17:49:24 +0200 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-08-23 17:51:14 +0200 |
commit | 463a8afaa58b80926b0236e14a6171f45c1b784f (patch) | |
tree | 6ef3bc150434889e49388b8520ed4ed95095b7cc /winsup/cygwin/errno.cc | |
parent | 80e0ad1e77a9365b85ffda62aa1471e5c8768743 (diff) | |
download | newlib-463a8afaa58b80926b0236e14a6171f45c1b784f.zip newlib-463a8afaa58b80926b0236e14a6171f45c1b784f.tar.gz newlib-463a8afaa58b80926b0236e14a6171f45c1b784f.tar.bz2 |
Implement missing POSIX-1.2008 function strerror_l
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/errno.cc')
-rw-r--r-- | winsup/cygwin/errno.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/errno.cc b/winsup/cygwin/errno.cc index 7e07a61..9168e9b 100644 --- a/winsup/cygwin/errno.cc +++ b/winsup/cygwin/errno.cc @@ -403,6 +403,13 @@ strerror (int errnum) return result; } +extern "C" char * +strerror_l (int errnum, locale_t locale) +{ + /* We don't provide localized system error messages (yet?). */ + return strerror (errnum); +} + /* Newlib's <string.h> provides declarations for two strerror_r variants, according to preprocessor feature macros. However, it returns "" instead of "Unknown error ...", so we override both |