* 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:
@@ -456,12 +456,13 @@ details. */
|
||||
278: Add quotactl.
|
||||
279: Export stime.
|
||||
280: Static atexit in libcygwin.a, CW_FIXED_ATEXIT.
|
||||
281: Add CW_GETNSS_PWD_SRC, CW_GETNSS_GRP_SRC.
|
||||
*/
|
||||
|
||||
/* Note that we forgot to bump the api for ualarm, strtoll, strtoull */
|
||||
|
||||
#define CYGWIN_VERSION_API_MAJOR 0
|
||||
#define CYGWIN_VERSION_API_MINOR 280
|
||||
#define CYGWIN_VERSION_API_MINOR 281
|
||||
|
||||
/* There is also a compatibity version number associated with the
|
||||
shared memory regions. It is incremented when incompatible
|
||||
|
@@ -151,7 +151,9 @@ typedef enum
|
||||
CW_GETPWSID,
|
||||
CW_GETGRSID,
|
||||
CW_CYGNAME_FROM_WINNAME,
|
||||
CW_FIXED_ATEXIT
|
||||
CW_FIXED_ATEXIT,
|
||||
CW_GETNSS_PWD_SRC,
|
||||
CW_GETNSS_GRP_SRC
|
||||
} cygwin_getinfo_types;
|
||||
|
||||
#define CW_LOCK_PINFO CW_LOCK_PINFO
|
||||
@@ -210,6 +212,8 @@ typedef enum
|
||||
#define CW_GETGRSID CW_GETGRSID
|
||||
#define CW_CYGNAME_FROM_WINNAME CW_CYGNAME_FROM_WINNAME
|
||||
#define CW_FIXED_ATEXIT CW_FIXED_ATEXIT
|
||||
#define CW_GETNSS_PWD_SRC CW_GETNSS_PWD_SRC
|
||||
#define CW_GETNSS_GRP_SRC CW_GETNSS_GRP_SRC
|
||||
|
||||
/* Token type for CW_SET_EXTERNAL_TOKEN */
|
||||
enum
|
||||
@@ -218,6 +222,13 @@ enum
|
||||
CW_TOKEN_RESTRICTED = 1
|
||||
};
|
||||
|
||||
/* Source type for CW_GETNSS_PWD_SRC and CW_GETNSS_GRP_SRC. */
|
||||
enum
|
||||
{
|
||||
NSS_SRC_FILES = 1,
|
||||
NSS_SRC_DB = 2
|
||||
};
|
||||
|
||||
/* Enumeration source constants for CW_SETENT called from mkpasswd/mkgroup. */
|
||||
enum nss_enum_t
|
||||
{
|
||||
|
Reference in New Issue
Block a user