* include/sys/cygwin.h (CW_SETERRNO): Define.
* external.cc (CW_SETERRNO): Implement. * include/cygwin/version.h: Bump CYGWIN_VERSION_API_MINOR to 192 to reflect the above change. * path.cc (path_prefix_p): Treat X: as equivalent to x:. * mkglobals_h: Remove unneeded #define. * spawn.cc (spawn_guts): Avoid overly wordy initialization to zero.
This commit is contained in:
@@ -363,6 +363,13 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
const char *passwd = va_arg (arg, const char *);
|
||||
return setlsapwd (passwd);
|
||||
}
|
||||
case CW_SETERRNO:
|
||||
{
|
||||
const char *file = va_arg (arg, const char *);
|
||||
int line = va_arg (arg, int);
|
||||
seterrno(file, line);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
|
Reference in New Issue
Block a user