* external.cc (cygwin_internal): Handle new CW_SETENT, CW_GETENT and
CW_ENDENT info types. * grp.cc (setgrent_filtered): New function, called from cygwin_internal. (getgrent_filtered): Ditto. (endgrent_filtered): Ditto. * passwd.cc (pg_ent::setent): Set state explicitely to from_cache. (pg_ent::getent): Handle the fact that a DC has no SAM and enumerating local accounts is equivalent to enumerating domain accounts. (setpwent_filtered): New function, called from cygwin_internal. (getpwent_filtered): Ditto. (endpwent_filtered): Ditto. * pwdgrp.h (setpwent_filtered): Declare. (getgrent_filtered): Ditto. (endgrent_filtered): Ditto. (setpwent_filtered): Ditto. (getpwent_filtered): Ditto. (endpwent_filtered): Ditto. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_SETENT, CW_GETENT, and CW_ENDENT.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* sys/cygwin.h
|
||||
|
||||
Copyright 1997, 1998, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008,
|
||||
2009, 2010, 2011, 2012, 2013 Red Hat, Inc.
|
||||
2009, 2010, 2011, 2012, 2013, 2014 Red Hat, Inc.
|
||||
|
||||
This file is part of Cygwin.
|
||||
|
||||
@@ -143,7 +143,10 @@ typedef enum
|
||||
CW_CVT_ENV_TO_WINENV,
|
||||
CW_ALLOC_DRIVE_MAP,
|
||||
CW_MAP_DRIVE_MAP,
|
||||
CW_FREE_DRIVE_MAP
|
||||
CW_FREE_DRIVE_MAP,
|
||||
CW_SETENT,
|
||||
CW_GETENT,
|
||||
CW_ENDENT
|
||||
} cygwin_getinfo_types;
|
||||
|
||||
#define CW_LOCK_PINFO CW_LOCK_PINFO
|
||||
@@ -194,6 +197,9 @@ typedef enum
|
||||
#define CW_ALLOC_DRIVE_MAP CW_ALLOC_DRIVE_MAP
|
||||
#define CW_MAP_DRIVE_MAP CW_MAP_DRIVE_MAP
|
||||
#define CW_FREE_DRIVE_MAP CW_FREE_DRIVE_MAP
|
||||
#define CW_SETENT CW_SETENT
|
||||
#define CW_GETENT CW_GETENT
|
||||
#define CW_ENDENT CW_ENDENT
|
||||
|
||||
/* Token type for CW_SET_EXTERNAL_TOKEN */
|
||||
enum
|
||||
|
Reference in New Issue
Block a user