* cygheap.h (cygheap_pwdgrp): Remove constants NSS_FILES and NSS_DB.
Use NSS_SRC_FILES and NSS_SRC_DB throughout instead. (cygheap_pwdgrp::nss_pwd_src): New inline method. (cygheap_pwdgrp::nss_grp_src): Ditto. * external.cc (cygwin_internal): Add CW_GETNSS_PWD_SRC and CW_GETNSS_GRP_SRC cases. * uinfo.cc: Use NSS_SRC_FILES and NSS_SRC_DB throughout. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_GETNSS_PWD_SRC and CW_GETNSS_GRP_SRC. (NSS_SRC_FILES): Define. (NSS_SRC_DB): Define.
This commit is contained in:
@ -601,6 +601,14 @@ cygwin_internal (cygwin_getinfo_types t, ...)
|
||||
res = (uintptr_t) cygheap->pg.nss_separator ();
|
||||
break;
|
||||
|
||||
case CW_GETNSS_PWD_SRC:
|
||||
res = (uintptr_t) cygheap->pg.nss_pwd_src ();
|
||||
break;
|
||||
|
||||
case CW_GETNSS_GRP_SRC:
|
||||
res = (uintptr_t) cygheap->pg.nss_grp_src ();
|
||||
break;
|
||||
|
||||
case CW_GETPWSID:
|
||||
{
|
||||
int db_only = va_arg (arg, int);
|
||||
|
Reference in New Issue
Block a user