diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2002-06-03 21:56:10 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2002-06-03 21:56:10 +0400 |
commit | 31b98a623c4d2a40ce81e3e8e9901b03e23b0cf2 (patch) | |
tree | e21893bd22591b30f18c3b2a1fb7cf44abafa82a /winsup | |
parent | cc890e89529cdcd2500893097d9a6c52e5eee672 (diff) |
* 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')
-rw-r--r-- | winsup/cygwin/ChangeLog | 7 | ||||
-rw-r--r-- | winsup/cygwin/external.cc | 8 | ||||
-rw-r--r-- | winsup/cygwin/include/sys/cygwin.h | 3 |
3 files changed, 17 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 99477ef02..54113f977 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,5 +1,12 @@ 2002-06-03 Corinna Vinschen <corinna@vinschen.de> + * 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. + +2002-06-03 Corinna Vinschen <corinna@vinschen.de> + * syscalls.cc (stat64_to_stat32): Transform st_dev correctly. (fstat64): Add evaluating st_ino and st_dev. (stat_worker): Evaluate st_dev as 32 bit value. diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc index 00ab2ac08..7959d3999 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; } diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h index 8e772ef00..f8feda4c7 100644 --- a/winsup/cygwin/include/sys/cygwin.h +++ b/winsup/cygwin/include/sys/cygwin.h @@ -69,7 +69,8 @@ typedef enum CW_GET_CYGWIN_REGISTRY_NAME, CW_STRACE_TOGGLE, CW_STRACE_ACTIVE, - CW_CYGWIN_PID_TO_WINPID + CW_CYGWIN_PID_TO_WINPID, + CW_EXTRACT_DOMAIN_AND_USER } cygwin_getinfo_types; #define CW_NEXTPID 0x80000000 // or with pid to get next one |