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>2009-01-09 08:18:02 +0300
committerChristopher Faylor <me@cgf.cx>2009-01-09 08:18:02 +0300
commitd95d8c5393988702112b8fcd154683150227cb7a (patch)
tree68eae25a4f9469fae8cbc227f8b4ca28e11c57e5 /winsup/cygwin/external.cc
parent086dc27fec1b3e5ff4e01404b67e02d745f01d4b (diff)
* 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.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r--winsup/cygwin/external.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index b880e07fb..0157fc0e4 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -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;