summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix date of latest entryCorinna Vinschen2014-12-081-1/+1
|
* * faq-setup.xml (faq.setup.upgrade-mountpoints): Remove.Corinna Vinschen2014-12-083-38/+8
| | | | | * pathnames.xml (pathnames-mount-ex): Remove note about 1.5->1.7 registry mount point updates.
* * posix.xml (std-solaris): Point to libtirpc for xdr functions.Corinna Vinschen2014-12-062-49/+53
|
* * cygwin.xsl (toc.section.depth): Set to 4.Corinna Vinschen2014-12-063-392/+907
| | | | | * ntsec.xml: Revamp account mapping documentation to account for the new db_home, db_shell, db_gecos settings.
* * environ.cc (build_env): Remove loquacious debug statements.Corinna Vinschen2014-12-062-2/+4
|
* * new-features.xml (ov-new1.7.34): Document qsort_r and __bsd_qsort_r.Yaakov Selkowitz2014-12-053-0/+16
| | | | | | * posix.xml (std-bsd): Add qsort_r. (std-gnu): Ditto. (std-notes): Add section for qsort_r.
* * common.din (__bsd_qsort_r): Add.Yaakov Selkowitz2014-12-053-1/+10
| | | | | (qsort_r): Add. * include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* * libc/include/stdlib.h (__bsd_qsort_r): Declare.Yaakov Selkowitz2014-12-057-43/+218
| | | | | | | | | | | | | | (qsort_r): Declare. * libc/search/Makefile.am (ELIX_2_SOURCES): Rename from ELIX_SOURCES. (ELIX_4_SOURCES): Define. Add bsd_qsort_r.c and qsort_r.c. (libsearch_la_SOURCES): Adapt accordingly. (lib_a_SOURCES): Adapt accordingly. (CHEWOUT_FILES): Add qsort_r.def. * libc/search/Makefile.in: Regenerate. * libc/search/bsd_qsort_r.c: New file. * libc/search/qsort.c: Update from FreeBSD HEAD. Adapt for both BSD and GNU qsort_r flavors. * libc/search/qsort_r.c: New file.
* * tzmap-from-unicode.org: Create tzmap as const.Corinna Vinschen2014-12-053-2/+7
| | | | * tzmap.h: Regenerate.
* * Makefile.in: Add rules to create and depend on tzmap.h.Corinna Vinschen2014-12-055-489/+627
| | | | | | | * tzmap-from-unicode.org: New script to create tzmap.h. * tzmap.h: New auto-generated file. * tzset.c: Drop tzmap from here and include tzmap.h instead. Drop Windows 2000 considerations.
* * libc/include/sys/signal.h [__SPU__] (kill): Declare.Corinna Vinschen2014-12-042-2/+10
|
* 2014-12-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2014-12-032-11/+45
| | | | | | * libc/include/inttypes.h: Only enable the 8-bit scanning macros if _WANT_IO_C99_FORMATS is defined by configuration. Add comment on why.
* * new-features.xml (ov-new1.7.34): Add latest changes.Corinna Vinschen2014-12-032-0/+19
|
* *** empty log message ***Corinna Vinschen2014-12-031-0/+18
|
* Revert accidental checkinCorinna Vinschen2014-12-021-1/+0
|
* * flock.cc (create_lock_in_parent): Make lf_obj handle inheritable.Corinna Vinschen2014-12-023-2/+19
| | | | | | | Explain why. (lockf_t::create_lock_obj): Use FALSE, rather than 0 for BOOL argument. (lockf_t::del_lock_obj): Check if NtSetEvent succeeded and print system message if not.
* * uinfo.cc (fetch_windows_home): New function fetching Windows-compliantCorinna Vinschen2014-12-023-14/+57
| | | | | | | | | | | home directory. Include longish comment to explain what we're doing. (cygheap_pwdgrp::get_home): Take additional sid parameter. In NSS_SCHEME_WINDOWS case, call fetch_windows_home to create home directory. (pwdgrp::fetch_account_from_windows): Call cygheap_pwdgrp::get_home with additional sid argument. * cygheap.h (cygheap_pwdgrp::get_home): Align declaration to above change.
* * uinfo.cc (cygheap_user::ontherange): Fix order of fallbacks creatingCorinna Vinschen2014-12-022-25/+41
| | | | HOMEDRIVE/HOMEPATH values to be Windows-compliant. Add comments.
* * autoload.cc (CreateProfile): Import.Corinna Vinschen2014-12-028-109/+145
| | | | | | | | | | | | | | | | | | | (LoadUserProfileW): Import. * registry.cc (get_registry_hive_path): Move to sec_auth.cc. (load_registry_hive): Remove. * registry.h (get_registry_hive_path): Drop declaration. (load_registry_hive): Ditto. * sec_auth.cc (get_user_profile_directory): Moved from registry.cc and renamed. Take third parameter with buffer length. (load_user_profile): New function taking over for load_registry_hive. Use official functions to load profile. If profile is missing, create it on Vista and later. * security.h (get_user_profile_directory): Declare. (load_user_profile): Declare. * syscalls.cc (seteuid32): Replace call to load_registry_hive with call to load_user_profile. * uinfo.cc (cygheap_user::env_userprofile): Replace call to get_registry_hive_path with call to get_user_profile_directory.
* * uinfo.cc (fetch_from_description): Make static.Corinna Vinschen2014-12-022-2/+7
| | | | (fetch_from_path): Ditto.
* * autoload.cc (CreateEnvironmentBlock): Import.Corinna Vinschen2014-12-027-10/+137
| | | | | | | | | | | | | | (DestroyEnvironmentBlock): Import. * environ.cc (env_compare): New static bsearch comparison function. (build_env): Add parameter taking a user token. If token is non-NULL, fetch user's default Windows environment and merge it into the resulting environment. Explain what we do in preceeding comment. * environ,h (build_env): Align prototype to above change. * external.cc (create_winenv): Call build_env with NULL token. * spawn.cc (child_info_spawn::worker): When spawning new process under another user account, call build_env with new token to allow merging user's default Windows environment. * winlean.h (_USERENV_): Define to override dllimport.
* * spawn.cc (child_info_spawn::worker): Fix formatting.Corinna Vinschen2014-12-022-2/+6
|
* * sec_auth.cc (str2lsa): Remove.Corinna Vinschen2014-12-022-20/+10
| | | | | (str2buf2lsa): Remove. (lsaauth): Call RtlInitAnsiString instead of str2lsa and str2buf2lsa.
* * cygheap.cc (init_cygheap::init_installation_root): Fix typo inCorinna Vinschen2014-12-022-1/+6
| | | | comment.
* * autoload.cc (IdnToAscii): Use simpler, equivalent LoadDLLfuncEx.Corinna Vinschen2014-12-022-2/+7
| | | | (IdnToUnicode): Ditto.
* * wincap.cc (wincap_minimal): Remove.Corinna Vinschen2014-12-013-12/+43
| | | | | | | (wincaps): Drop has_physical_mem_access. (wincap_10): New global wincaps to support Windows 10. (wincapc::init): Use wincap_10 for version >= 6.4 and as default. * wincap.h (wincaps::has_physical_mem_access): remove.
* * cygheap.cc (init_cygheap::init_tls_list): Accommodate threadlistCorinna Vinschen2014-11-288-69/+202
| | | | | | | | | | | | | | | | | | | | | | | | having a new type threadlist_t *. Convert commented out code into an #if 0. Create thread mutex. Explain why. (init_cygheap::remove_tls): Drop timeout value. Always wait infinitely for tls_sentry. Return mutex HANDLE of just deleted threadlist entry. (init_cygheap::find_tls): New implementation taking tls pointer as search parameter. Return threadlist_t *. (init_cygheap::find_tls): Return threadlist_t *. Define ix as auto variable. Drop exception handling since crash must be made impossible due to correct synchronization. Return with locked mutex. * cygheap.h (struct threadlist_t): Define. (struct init_cygheap): Convert threadlist to threadlist_t type. (init_cygheap::remove_tls): Align declaration to above change. (init_cygheap::find_tls): Ditto. (init_cygheap::unlock_tls): Define. * cygtls.cc (_cygtls::remove): Unlock and close mutex when finishing. * exceptions.cc (sigpacket::process): Lock _cygtls area of thread before accessing it. * fhandler_termios.cc (fhandler_termios::bg_check): Ditto. * sigproc.cc (sig_send): Ditto. * thread.cc (pthread::exit): Ditto. Add comment. (pthread::cancel): Ditto.
* * Makefile.in (XSLTPROC): Remove.Yaakov Selkowitz2014-11-282-6/+10
| | | | | | (cygwin-ug-net/cygwin-ug-net.pdf): Build with xmlto pdf. (cygwin-api/cygwin-api.pdf): Ditto. (faq/faq.html): Fix extraneous anchor removal.
* * cygheap.cc (init_cygheap::find_tls): Add comment.Corinna Vinschen2014-11-286-57/+88
| | | | | | | | | | | | | | | | * cygtls.cc (well_known_dlls): Rephrase comment. (bloda_detect): New function. (_cygtls::call2): Call init_thread and bloda_detect for non-pthread threads only. (_cygtls::remove): Move remove_tls and remove_wq calls up to run first. * miscfuncs.cc (struct pthread_wrapper_arg): Rename from struct thread_wrapper_arg. (pthread_wrapper): Rename from thread_wrapper and drop "static". Fix comment. Drop call to _cygtls::remove. Call api_fatal rather than ExitThread. Explain why. * miscfuncs.h (pthread_wrapper): Declare pthread_wrapper. * thread.cc (pthread::exit): Add a FIXME comment. Call _cygtls::remove before calling ExitThread.
* * mips/crt0.S: Configure processor based on .MIPS.abiflags.Corinna Vinschen2014-11-288-28/+194
| | | | | | | | | | | Remove FPU availability check, just use the pre-processor flags to indicicate what the user wanted. * mips/abiflags.S: New file. * mips/regs.S (SR_MSA): Define macro. * mips/mti32.ld: Place .MIPS.abiflags and wrap in marker symbols. * mips/mti64.ld: Likewise. * mips/mti64_64.ld: Likewise. * mips/mti64_n32.ld: Likewise.
* * libc/include/machine/setjmp.h [__mips__]: Remove __mips_fpr == 64Corinna Vinschen2014-11-283-6/+50
| | | | | | | from the 64-bit _JBTYPE definition. * libc/machine/mips/setjmp.S: Re-work the o32 FP64 support to match the now one-and-only supported o32 FP64 ABI extension. Also support o32 FPXX.
* * mkgroup.c (main): Call enum_local_groups with offset 0x30000 for localCorinna Vinschen2014-11-282-2/+8
| | | | machine, too.
* * mkgroup.c (main): Call enum_groups with offset 0x30000 for localCorinna Vinschen2014-11-273-12/+24
| | | | | | | | machine, same as from DB. * mkpasswd.c (enum_unix_users): Set pw_passwd field to '*'. (enum_users): Ditto. (main): Call enum_users with offset of 0x30000 for local machine, same as from DB.
* * mount.cc (mount_info::init): Take bool argument and allow toCorinna Vinschen2014-11-275-11/+40
| | | | | | | | | | | | | initialize mount table in two steps, system and user, depending on bool value. * mount.h (class mount_info): Align declaration of init function to above change. * shared.cc (user_info::initialize): Initialize mount table in two steps to allow internal_getpwsid to create valid POSIX paths from DOS paths given in AD. Add comments. * uinfo.cc (cygheap_pwdgrp::get_home): Allow DOS paths in NSS_SCHEME_FREEATTR attributes. (cygheap_pwdgrp::get_shell): Ditto.
* * cygheap.cc (init_cygheap::find_tls): Allow to keep loop going afterCorinna Vinschen2014-11-272-19/+33
| | | | | access to threadlist[ix] faulted. In case of an exception, remove threadlist[ix] from threadlist only. Add comment.
* 2014-11-26 Matthew Fortune <Matthew.Fortune@imgtec.com>Jeff Johnston2014-11-272-35/+24
| | | | | | * mips/crt0.S: Remove .set noreorder throughout. (zerobss): Open code the bltu macro instruction so that the zero-loop does not have a NOP in the branch delay slot.
* * Makefile.in (install): Add install-ldif target.Corinna Vinschen2014-11-267-185/+913
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (install-ldif): New target to install cygwin.ldif. * cygheap.h (class cygheap_pwdgrp): Rename pfx_t to nss_pfx_t. Add PFX to enum value. Add nss_scheme_method enum and nss_scheme_t structure. Add home_scheme, shell_scheme and gecos_scheme members. (NSS_SCHEME_MAX): Define. (cygheap_pwdgrp::get_home): Declare. (cygheap_pwdgrp::get_shell): Declare. (cygheap_pwdgrp::get_gecos): Declare. * cygwin.ldif: New file. * ldap.cc (std_user_attr): New array, just defining the standard attributes. (group_attr): Add cygwinUnixGid. (user_attr): Convert to macro pointing to cygheap->pg.ldap_user_attr. (cygheap_pwdgrp::init_ldap_user_attr): New method. (cyg_ldap::fetch_ad_account): Call cygheap_pwdgrp::init_ldap_user_attr if user_attr initialization is required. Fix comment. (cyg_ldap::get_string_attribute): Implement taking attribute name as argument. * ldap.h: Drop unused macros. (cyg_ldap::get_gecos): Remove. (cyg_ldap::get_home): Remove. (cyg_ldap::get_shell): Remove. (cyg_ldap::get_string_attribute): Declare name argument variant public. * uinfo.cc (cygheap_user::ontherange): Fix indentation. (cygheap_pwdgrp::init): Initialize new home_scheme, shell_scheme and gecos_scheme members. Align comment. (NSS_NCMP): Define comparison macro. (NSS_CMP): Ditto. (cygheap_pwdgrp::nss_init_line): Use aforementioned macros throughout. Fix comment handling. Add db_home, db_shell and db_gecos handling. (fetch_from_description): New function to fetch XML-style attributes from (description) string. (fetch_from_path): New function to evaluate path string with wildcards. (cygheap_pwdgrp::get_home): New methods to fetch pw_dir value. (cygheap_pwdgrp::get_shell): Ditto for pw_shell. (cygheap_pwdgrp::get_gecos): Ditto for pw_gecos. (colon_to_semicolon): Move up. (pwdgrp::fetch_account_from_windows): Convert home, shell, gecos variables to char*. Drop statement breaking extended group info. Fetch home, shell and gecos values using new methods. Use fetch_from_description calls to fetch UNIX id and primary groups from SAM comment field. Accommodate uxid being a char* now. Accommodate the fact that extended info is malloc'ed, rather then alloca'ed. Create linebuf content as multibyte string. Create line buffer by just calling cstrdup.
* * libc/machine/arm/strcmp-armv6m.S: New file.Corinna Vinschen2014-11-265-50/+170
| | | | | | * libc/machine/arm/strcmp.S: Add new wrapper. * libc/machine/arm/Makefile.am: Add dependencies. * libc/machine/arm/Makefile.in: Regenerated.
* * libc/include/sys/_default_fcntl.h: Move all Cygwin-specific openCorinna Vinschen2014-11-252-16/+18
| | | | | flags from Cygwin's fcntl.h here. Remove check for WIN32. Remove Windows-specific macros.
* * include/fcntl.h: Move all open flags (except O_NDELAY) to newlib'sCorinna Vinschen2014-11-252-15/+7
| | | | sys/_default_fcntl.h.
* * binmode.c (cygwin_premain0): Don't use underscore'd variants of theCorinna Vinschen2014-11-253-6/+12
| | | | | open flags. * textmode.c (cygwin_premain0): Ditto.
* merge from gccDJ Delorie2014-11-242-0/+28
|
* 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com>Joel Sherrill2014-11-242-0/+7
| | | | | * libc/include/sys/resource.h: Add prototype for getrusage() to <sys/resource.h>
* * utils.xml (passwd): Align to latest changes.Corinna Vinschen2014-11-242-8/+11
|
* * passwd.c (GetPW): If server is NULL, and the user is not a localCorinna Vinschen2014-11-242-14/+41
| | | | | | | | user, try to fetch the DC to use as server. (ChangePW): Get Windows username via extra parameter. (usage): Reduce -d help text to reflect above change. (main): Fix typo in comment. Call GetPW and ChangePW as per the changes above.
* * init.cc (dll_entry): Revert previous patch. This requires anotherCorinna Vinschen2014-11-214-4/+23
| | | | | | | | | solution. * miscfuncs.cc (thread_wrapper): Ditto. * sigproc.cc (exit_thread): Disable sending a signal for synchronization with process exit. Explain why. Keep code in for later inspection, should the problem show up again. (sig_send): Use "tls", rather than "tid" as name for _cygtls arg.
* PR target/63901Nick Clifton2014-11-212-0/+6
| | | | * configure.host (msp430): Add -mhwmult=none to newlib_cflags.
* * init.cc (dll_entry): Call _my_tls.remove with INFINITE wait periodCorinna Vinschen2014-11-203-2/+8
| | | | | to avoid SEGVs and subsequent hangs in _cygtls::find_tls. * miscfuncs.cc (thread_wrapper): Ditto.
* * libc/stdio/nano-vfprintf_i.c (_printf_i): Use LONGINT when void* isCorinna Vinschen2014-11-202-1/+8
| | | | larger than an int.
* * libc/sys/rtems/sys/syslimits.h (NGROUPS_MAX): Adjust value soCorinna Vinschen2014-11-202-1/+6
| | | | that NGROUPS is even.