diff options
author | Christopher Faylor <me@cgf.cx> | 2010-08-18 23:15:37 +0400 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2010-08-18 23:15:37 +0400 |
commit | 590ad4793f9da405614e83710db7f426a8a3bc5e (patch) | |
tree | 09264826b55b37505196c6fcfce8d6dac6480acb /winsup/cygwin/external.cc | |
parent | 6a84234cd220eeef9fa5a24721079d45d9375a81 (diff) |
* external.cc (CW_SETCWD): New option.
* include/cygwin/version.h: Bump api minor to 231.
* include/sys/cygwin.h (CW_SETCWD): Define.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index e01c9fea6..53ce5b1b8 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -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); } |