* external.cc (CW_SETCWD): New option.

* include/cygwin/version.h: Bump api minor to 231.
* include/sys/cygwin.h (CW_SETCWD): Define.
This commit is contained in:
Christopher Faylor
2010-08-18 19:15:37 +00:00
parent 6a84234cd2
commit 590ad4793f
4 changed files with 16 additions and 2 deletions

View File

@@ -515,6 +515,12 @@ cygwin_internal (cygwin_getinfo_types t, ...)
}
break;
case CW_SETCWD:
{
cygheap->cwd.cwd_lock.acquire ();
PWCHAR cwd = cygheap->cwd.win32.Buffer;
res = !SetCurrentDirectoryW (cwd);
}
default:
set_errno (ENOSYS);
}