a8cf6887a2
(ldap_result): Import. (ldap_searchW): Import. (NetGroupEnum): Import. (NetLocalGroupEnum): Import. (NetUserEnum): Import. * cygheap.h (class cygheap_pwdgrp): Add members enums and enum_tdoms. (cygheap_pwdgrp::nss_db_enums): New inline method. (cygheap_pwdgrp::nss_db_enum_tdoms): Ditto. * cygtls.h (struct _local_storage): Drop unused members pw_pos and grp_pos. * grp.cc (grent): New static variable of class gr_ent. (gr_ent::enumerate_caches): New method. (gr_ent::enumerate_local): New method. (gr_ent::getgrent): New method. (setgrent): Call gr_ent method. (getgrent32): Ditto. (endgrent): Ditto. * ldap.cc (sid_attr): Rename from nfs_attr. (cyg_ldap::close): Abandon still running asynchronous search. (cyg_ldap::fetch_ad_account): Reduce filter buffer size. (cyg_ldap::enumerate_ad_accounts): New method. (cyg_ldap::next_account): New method. (cyg_ldap::fetch_posix_offset_for_domain): Reduce filter buffer size. (cyg_ldap::fetch_unix_sid_from_ad): Ditto. Fix return value in case no value has been read. (cyg_ldap::fetch_unix_name_from_rfc2307): Reduce filter buffer size. * ldap.h (class cyg_ldap): Add msg_id member. (cyg_ldap::enumerate_ad_accounts): Declare. (cyg_ldap::next_account): Declare: * passwd.cc (pwent): New static variable of class pw_ent. (pg_ent::clear_cache): New method. (pg_ent::setent): New method. (pg_ent::getent): New method. (pg_ent::endent): New method. (pg_ent::enumerate_file): New method. (pg_ent::enumerate_builtin): New method. (pg_ent::enumerate_sam): New method. (pg_ent::enumerate_ad): New method. (pw_ent::enumerate_caches): New method. (pw_ent::enumerate_local): New method. (pw_ent::getpwent): New method. (setpwent): Call pw_ent method. (getpwent): Ditto. (endpwent): Ditto. * pwdgrp.h (class pwdgrp): Define pg_ent, pw_ent and gr_ent as friend classes. (pwdgrp::add_account_post_fetch): Declare with extra bool parameter. (pwdgrp::file_attr): New inline method. (enum nss_enum_t): Define. (class pg_ent): Define. (class pw_ent): Define. (class gr_ent): Define. * tlsoffsets.h: Regenerate. * tlsoffsets64.h: Ditto. * uinfo.cc (cygheap_pwdgrp::init): Initialize enums and enum_tdoms. (cygheap_pwdgrp::nss_init_line): Fix typo in preceeding comment. Handle new "db_enum" keyword. (pwdgrp::add_account_post_fetch): Take additional `bool lock' parameter and acquire pglock before adding element to array if lock is true. (pwdgrp::add_account_from_file): Call add_account_post_fetch with lock set to true. (pwdgrp::add_account_from_windows): Ditto in case of caching. (pwdgrp::fetch_account_from_windows): Handle builtin aliases only known to the domain controller. Only call NetLocalGroupGetInfo for aliases.
118 lines
3.3 KiB
C
118 lines
3.3 KiB
C
//;# autogenerated: Do not edit.
|
|
|
|
//; $tls::start_offset = -12800;
|
|
//; $tls::locals = -12800;
|
|
//; $tls::plocals = 0;
|
|
//; $tls::local_clib = -11248;
|
|
//; $tls::plocal_clib = 1552;
|
|
//; $tls::__dontuse = -11248;
|
|
//; $tls::p__dontuse = 1552;
|
|
//; $tls::func = -9360;
|
|
//; $tls::pfunc = 3440;
|
|
//; $tls::saved_errno = -9352;
|
|
//; $tls::psaved_errno = 3448;
|
|
//; $tls::sa_flags = -9348;
|
|
//; $tls::psa_flags = 3452;
|
|
//; $tls::oldmask = -9344;
|
|
//; $tls::poldmask = 3456;
|
|
//; $tls::deltamask = -9336;
|
|
//; $tls::pdeltamask = 3464;
|
|
//; $tls::errno_addr = -9328;
|
|
//; $tls::perrno_addr = 3472;
|
|
//; $tls::sigmask = -9320;
|
|
//; $tls::psigmask = 3480;
|
|
//; $tls::sigwait_mask = -9312;
|
|
//; $tls::psigwait_mask = 3488;
|
|
//; $tls::sigwait_info = -9304;
|
|
//; $tls::psigwait_info = 3496;
|
|
//; $tls::signal_arrived = -9296;
|
|
//; $tls::psignal_arrived = 3504;
|
|
//; $tls::will_wait_for_signal = -9288;
|
|
//; $tls::pwill_wait_for_signal = 3512;
|
|
//; $tls::thread_context = -9280;
|
|
//; $tls::pthread_context = 3520;
|
|
//; $tls::thread_id = -8448;
|
|
//; $tls::pthread_id = 4352;
|
|
//; $tls::infodata = -8444;
|
|
//; $tls::pinfodata = 4356;
|
|
//; $tls::tid = -8296;
|
|
//; $tls::ptid = 4504;
|
|
//; $tls::_ctinfo = -8288;
|
|
//; $tls::p_ctinfo = 4512;
|
|
//; $tls::andreas = -8280;
|
|
//; $tls::pandreas = 4520;
|
|
//; $tls::wq = -8272;
|
|
//; $tls::pwq = 4528;
|
|
//; $tls::sig = -8224;
|
|
//; $tls::psig = 4576;
|
|
//; $tls::incyg = -8220;
|
|
//; $tls::pincyg = 4580;
|
|
//; $tls::spinning = -8216;
|
|
//; $tls::pspinning = 4584;
|
|
//; $tls::stacklock = -8212;
|
|
//; $tls::pstacklock = 4588;
|
|
//; $tls::stackptr = -8208;
|
|
//; $tls::pstackptr = 4592;
|
|
//; $tls::stack = -8200;
|
|
//; $tls::pstack = 4600;
|
|
//; $tls::initialized = -6152;
|
|
//; $tls::pinitialized = 6648;
|
|
//; __DATA__
|
|
|
|
#define tls_locals (-12800)
|
|
#define tls_plocals (0)
|
|
#define tls_local_clib (-11248)
|
|
#define tls_plocal_clib (1552)
|
|
#define tls___dontuse (-11248)
|
|
#define tls_p__dontuse (1552)
|
|
#define tls_func (-9360)
|
|
#define tls_pfunc (3440)
|
|
#define tls_saved_errno (-9352)
|
|
#define tls_psaved_errno (3448)
|
|
#define tls_sa_flags (-9348)
|
|
#define tls_psa_flags (3452)
|
|
#define tls_oldmask (-9344)
|
|
#define tls_poldmask (3456)
|
|
#define tls_deltamask (-9336)
|
|
#define tls_pdeltamask (3464)
|
|
#define tls_errno_addr (-9328)
|
|
#define tls_perrno_addr (3472)
|
|
#define tls_sigmask (-9320)
|
|
#define tls_psigmask (3480)
|
|
#define tls_sigwait_mask (-9312)
|
|
#define tls_psigwait_mask (3488)
|
|
#define tls_sigwait_info (-9304)
|
|
#define tls_psigwait_info (3496)
|
|
#define tls_signal_arrived (-9296)
|
|
#define tls_psignal_arrived (3504)
|
|
#define tls_will_wait_for_signal (-9288)
|
|
#define tls_pwill_wait_for_signal (3512)
|
|
#define tls_thread_context (-9280)
|
|
#define tls_pthread_context (3520)
|
|
#define tls_thread_id (-8448)
|
|
#define tls_pthread_id (4352)
|
|
#define tls_infodata (-8444)
|
|
#define tls_pinfodata (4356)
|
|
#define tls_tid (-8296)
|
|
#define tls_ptid (4504)
|
|
#define tls__ctinfo (-8288)
|
|
#define tls_p_ctinfo (4512)
|
|
#define tls_andreas (-8280)
|
|
#define tls_pandreas (4520)
|
|
#define tls_wq (-8272)
|
|
#define tls_pwq (4528)
|
|
#define tls_sig (-8224)
|
|
#define tls_psig (4576)
|
|
#define tls_incyg (-8220)
|
|
#define tls_pincyg (4580)
|
|
#define tls_spinning (-8216)
|
|
#define tls_pspinning (4584)
|
|
#define tls_stacklock (-8212)
|
|
#define tls_pstacklock (4588)
|
|
#define tls_stackptr (-8208)
|
|
#define tls_pstackptr (4592)
|
|
#define tls_stack (-8200)
|
|
#define tls_pstack (4600)
|
|
#define tls_initialized (-6152)
|
|
#define tls_pinitialized (6648)
|