* 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.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user