diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-06-03 17:56:10 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-06-03 17:56:10 +0000 |
commit | 31b98a623c4d2a40ce81e3e8e9901b03e23b0cf2 (patch) | |
tree | e21893bd22591b30f18c3b2a1fb7cf44abafa82a /winsup/cygwin/external.cc | |
parent | cc890e89529cdcd2500893097d9a6c52e5eee672 (diff) | |
download | newlib-31b98a623c4d2a40ce81e3e8e9901b03e23b0cf2.zip newlib-31b98a623c4d2a40ce81e3e8e9901b03e23b0cf2.tar.gz newlib-31b98a623c4d2a40ce81e3e8e9901b03e23b0cf2.tar.bz2 |
* external.cc (cygwin_internal): Add CW_EXTRACT_DOMAIN_AND_USER
handling to call extract_nt_dom_user() from applications.
* include/sys/cygwin.h (cygwin_getinfo_types): Add
CW_EXTRACT_DOMAIN_AND_USER.
Diffstat (limited to 'winsup/cygwin/external.cc')
-rw-r--r-- | winsup/cygwin/external.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 00ab2ac..7959d39 100644 --- a/winsup/cygwin/external.cc +++ b/winsup/cygwin/external.cc @@ -234,6 +234,14 @@ cygwin_internal (cygwin_getinfo_types t, ...) pinfo p (va_arg (arg, pid_t)); return p ? p->dwProcessId : 0; } + case CW_EXTRACT_DOMAIN_AND_USER: + { + struct passwd *pw = va_arg (arg, struct passwd *); + char *domain = va_arg (arg, char *); + char *user = va_arg (arg, char *); + extract_nt_dom_user (pw, domain, user); + return 0; + } default: return (DWORD) -1; } |