diff options
author | Christopher Faylor <me@cgf.cx> | 2009-01-09 05:18:02 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2009-01-09 05:18:02 +0000 |
commit | d95d8c5393988702112b8fcd154683150227cb7a (patch) | |
tree | 68eae25a4f9469fae8cbc227f8b4ca28e11c57e5 /winsup/cygwin/external.cc | |
parent | 086dc27fec1b3e5ff4e01404b67e02d745f01d4b (diff) | |
download | cygnal-d95d8c5393988702112b8fcd154683150227cb7a.tar.gz cygnal-d95d8c5393988702112b8fcd154683150227cb7a.tar.bz2 cygnal-d95d8c5393988702112b8fcd154683150227cb7a.zip |
* 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.cc | 7 |
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; |