Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2010-07-04 21:12:27 +0400
committerChristopher Faylor <me@cgf.cx>2010-07-04 21:12:27 +0400
commit6259826eb42c86df34de98158c424060f98e3fa9 (patch)
tree271c6bcbe9f3d78330f46bd70109ffa0f332fef5 /winsup/cygwin/external.cc
parentdaa71118088d9b09d0fce28df7d8b6deccb89d6a (diff)
* path.cc (path_conv::check): Move fs-specific settings to a point where we
know that we have filled out the filesystem information. * path.h (path_conv::path_conv): Use consistent initialization for constructors. * include/sys/cygwin.h: Define CW_STRERROR. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 228. * include/external.h: Implement CW_STRERROR.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index d76000916..e01c9fea6 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -197,7 +197,7 @@ extern "C" unsigned long
cygwin_internal (cygwin_getinfo_types t, ...)
{
va_list arg;
- unsigned long res = -1;
+ uintptr_t res = (uintptr_t) -1;
va_start (arg, t);
switch (t)
@@ -508,6 +508,12 @@ cygwin_internal (cygwin_getinfo_types t, ...)
}
}
break;
+ case CW_STRERROR:
+ {
+ int err = va_arg (arg, int);
+ res = (uintptr_t) strerror (err);
+ }
+ break;
default:
set_errno (ENOSYS);