Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2010-02-19 * lc_era.h: New file.Corinna Vinschen
* nlsfuncs.cc: Include lc_era.h. (locale_cmp): convert arguments to char** to be usable for both types, lc_msg_t and lc_era_t. (__set_lc_time_from_win): Handle era-related data
2010-02-19 * fhandler_disk_file.cc (fhandler_disk_file::opendir): Try to openCorinna Vinschen
directory with stat()-friendly access mask first. Explain why.
2010-02-19 * fhandler_disk_file.cc (fhandler_base::fstat_helper): Set st_rdevCorinna Vinschen
to same value as st_dev. Avoid useless debug output in executable check. Add filename to debug output. (fhandler_disk_file::facl): Simplify code calling fstat methods to just call fstat to avoid errors with the cygdrive directory.
2010-02-18 * nlsfuncs.cc (eval_datetimefmt): Rename force to flags.Corinna Vinschen
(enum dt_flags): Define. (__eval_datetimefmt): Change force to flags and change type to dt_flags. Accommodate throughout. (__set_lc_time_from_win): Accommodate above change. Set era-related values to empty strings for now.
2010-02-18* fhandler.cc (fhandler_base::setup_overlapped): Revert to starting with handleChristopher Faylor
in signalled state as it seems to fix some hangs.
2010-02-15 * path.cc (path_conv::check): Treat native DOS paths as "noacl".Corinna Vinschen
2010-02-15 * mount.cc (mount_info::conv_to_win32_path): Set UNC path flags toCorinna Vinschen
cygdrive prefix path flags.
2010-02-15* fhandler.cc (fhandler_base::setup_overlapped): Don't set signalled state toChristopher Faylor
true initially. (fhandler_base::has_ongoing_io): Delete ill-advised function. (fhandler_base::read_overlapped): Rely on caller having checked nonblocking state. Don't attempt to (incorrectly) check it here. (fhandler_base::write_overlapped): Remove call to has_ongoing_io. * select.cc (peek_pipe): Ditto. * fhandler.h (fhandler_base::has_ongoing_io): Delete declaration.
2010-02-15* regex/regcomp.c (xwcrtomb): Fix one explicable and one inexcplicable CChristopher Faylor
warning.
2010-02-13 * regex/regcomp.c (xwcrtomb): Don't convert Unicode chars outside theCorinna Vinschen
base plane always to UTF-8. Call wcsnrtombs instead to allow arbitrary multibyte charsets.
2010-02-12 * regex/regcomp.c (wgetnext): Use size_t as type for n2 since that'sCorinna Vinschen
what's returned by mbrtowc. * regex/regexec.c (xmbrtowc): Ditto.
2010-02-12* pthread.cc (pthread_mutex_init): Explicitly fill out third arg toChristopher Faylor
pthread_mutex::init. * thread.cc: Remov some obsolete comments. (verifyable_object_isvalid): Reflect change to use thread_magic_t for magic numbers. (pthread_mutex::pthread_mutex): Set magic number to invalid initially until we've verified that everything is valid. (pthread_mutex::unlock): Fix a comment. (verifyable_object::verifyable_object): Delete here. (~verifyable_object::~verifyable_object): Ditto. (pthread_mutex::init): Don't run is_good_initializer for non-static objects. * thread.h (thread_magic_t): New typedef. (verifyable_object::verifyable_object): Use thread_magic_t; (verifyable_object::magic): Ditto. (pthread_mutex::is_good_initializer_or_bad_object): Remove unneeded variable names. (pthread_mutex::can_be_unlocked): Ditto. (pthread_mutex::init): Ditto. Remove default for third argument.
2010-02-12fix typoChristopher Faylor
2010-02-12 * regex/regcomp.c (xwcrtomb): New function to convert wide charsCorinna Vinschen
outside of the base plane to UTF-8. Call throughout instead of wcrtomb. (wgetnext): Handle surrogate pairs on UTF-16 systems. * regex/regexec.c (xmbrtowc): Ditto.
2010-02-12 * sec_auth.cc (get_user_local_groups): Retrieve name of well knownCorinna Vinschen
builtin group from system. Explain why. * sec_helper.cc (well_known_builtin_sid): New SID for BUILTIN group. * security.h (well_known_builtin_sid): Declare.
2010-02-122010-02-11 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet
* registry.c (get_registry_hive_path): Add space in string.
2010-02-12 * regex/engine.c (step): Drop Cygwin-specific definition.Corinna Vinschen
(NONCHAR): Better cast here to make the test work. Move comment from step here. (matcher): Disable skipping initial string in multibyte case. * regex/regcomp.c (p_bracket): Don't simplify singleton in the invert case. (p_b_term): Handle early end of pattern after dash in bracket expression. (singleton): Don't ignore the wides just because there's already a singleton in the single byte chars. Fix condition for a singleton wide accordingly. (findmust): Check for LC_CTYPE charset, rather than LC_COLLATE charset. * regex2.h (CHIN): Fix condition in the icase & invert case. (ISWORD): Fix wrong cast to unsigned char.
2010-02-11 * nlsfuncs.cc (initial_setlocale): Move check whether charset hasCorinna Vinschen
changed from here... (internal_setlocale): ...to here, to avoid unnecessary work when invoked via CW_INT_SETLOCALE.
2010-02-10 * nlsfuncs.cc (__set_charset_from_locale): Allow "@euro" modifier onlyCorinna Vinschen
for locales which use EUR as currency.
2010-02-10 * nlsfuncs.cc (__get_lcid_from_locale): Convert iu_CA to iu-Latn-CACorinna Vinschen
rather than iu-Cans-CA on Vista and later. (__set_charset_from_locale): Set default charset for iu_CA to UTF-8.
2010-02-10* dcrt0.cc (_dll_crt0): Set _main_tls as early as possible.Christopher Faylor
* thread.cc (pthread_mutex::can_be_unlocked): Remove check for MUTEX_OWNER_ANONYMOUS since it is racy and unsafe. (pthread::init_mainthread): Initialize thread directly from _my_tls. (pthread::self): Ditto. (pthread::get_tls_self_pointer): Delete. (pthread_mutex::pthread_mutex): Use an event rather than a semaphore. (pthread_mutex::lock): Rename from _<func>. Derive self directly. (pthread_mutex::tryunlock): Ditto. (pthread_mutex::destroy): Ditto. (pthread_mutex::unlock): Ditto. Accommodate change from semaphore to event. (pthread_mutex::_fixup_after_fork): Accommodate change from semaphore to event. (pthread_mutex::init): Don't attempt to initialize a semaphore unless it is in an initialized state. Do this check under mutex_initialization_lock.lock * thread.h (fast_mutex::init): Use event rather than semaphore. (fast_mutex::lock): Ditto. (pthread_mutex::_lock): Delete. (pthread_mutex::_unlock): Ditto. (pthread_mutex::_trylock): Ditto. (pthread_mutex::_destroy): Ditto. (pthread_mutex::get_pthread_self): Ditto. (pthread_mutex::get_tls_self_pointer): Ditto. (pthread_mutex::lock): Un-inline. (pthread_mutex::unlock): Ditto. (pthread_mutex::trylock): Ditto. (pthread_mutex::destroy): Ditto.
2010-02-10* cygtls.h (struct _cygtls): Remove unneeded elements.Christopher Faylor
* thread.cc (pthread::exit): Avoid potential double call to _my_tls.remove. * tlsoffsets.h: Regenerate.
2010-02-09 * nlsfuncs.cc (lc_wcstombs): Add `return_invalid' flag to specifyCorinna Vinschen
whether invalid chars should be ignored or not. Change comment. (__set_lc_monetary_from_win): Call lc_wcstombs with return_invalid flag set. (__set_lc_messages_from_win): Simplify to accommodate the fact that lc_wcstombs just ignores invalid chars. Explain why.
2010-02-09 * nlsfuncs.cc (__set_lc_messages_from_win): Fix typo.Corinna Vinschen
2010-02-09 * lc_msg.h: New file, fix a problem in locales with modifiers.Corinna Vinschen
2010-02-09 * lc_msg.h: New file, generated from running Linux system.Corinna Vinschen
2010-02-09 * lc_msg.h: New file, autogenerated from CLDR data.Corinna Vinschen
* nlsfuncs.cc: Include lc_msg.h. (lc_time_buf): Remove. (lc_numeric_buf): Remove. (lc_monetary_buf): Remove. (lc_mbstowcs): Fix previous fix. (__set_lc_time_from_win): Take additional pointer to buffer pointer, defined in newlib. (__set_lc_numeric_from_win): Ditto. (__set_lc_monetary_from_win): Ditto. (locale_cmp): New static function. (__set_lc_messages_from_win): New function to be called from newlib.
2010-02-09 Now *really* check in what should have been checked in 12 hours ago.Corinna Vinschen
2010-02-08 This patch got lost in the previous checkin, accidentally:Corinna Vinschen
* nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
2010-02-08 * external.cc (cygwin_internal): Add CW_INT_SETLOCALE case toCorinna Vinschen
allow to call internal_setlocale(). * nlsfuncs.cc (internal_setlocale): Make externally available. * include/cygwin/version.h: Bump API minor number. * include/sys/cygwin.h (cygwin_getinfo_types): Add CW_INT_SETLOCALE. * nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc. (__set_locale_from_locale_alias): Ignore "@cjknarrow" modifier.
2010-02-07 * nlsfuncs.cc (__get_lcid_from_locale): Handle "@cyrillic" modifierCorinna Vinschen
for uz_UZ locale here. (__set_charset_from_locale): Accommodate above change.
2010-02-07 * nlsfuncs.cc (__set_locale_from_locale_alias): New function to readCorinna Vinschen
locale aliases from /usr/share/locale/locale.alias.
2010-02-07 * nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, ratherCorinna Vinschen
than nn_NO.
2010-02-07 * nlsfuncs.cc (has_modifier): MOve up in file to use inCorinna Vinschen
__get_lcid_from_locale as well. (__get_lcid_from_locale): Handle no_NO locale as alias for nn_NO. Default all sr_XY locales to Cyrillic script. Change lcid to Latin script if "@latin" modifier has been specified. (__set_charset_from_locale): Handle Serbian in codepage 1251 case as well. Also check for sr_BA lcid. Restrict "@euro" modifier to locales otherwise defaulting to ISO-8859-1.
2010-02-06 * nlsfuncs.cc (__set_charset_from_locale): Set default charset forCorinna Vinschen
"ka_GE" locale to GEORGIAN-PS, for "kk_KZ" to PT154.
2010-02-06 * path.cc (symlink_info::check_nfs_symlink): Reopen file withCorinna Vinschen
FILE_READ_EA access since, surprisingly, you need it to read EAs even on NFS.
2010-02-06 * sec_auth.cc (get_full_privileged_inheritable_token): New functionCorinna Vinschen
to fetch token with full privileges from logon token in Vista and later, and to make token inheritable. Add lengthy comments to explain the function's job. (cygwin_logon_user): Drop calling SetHandleInformation. Enable TCB privilege and call get_full_privileged_inheritable_token. (lsaauth): Don't fetch linked token and don't make handle inheritable here, just call get_full_privileged_inheritable_token instead. (lsaprivkeyauth): Ditto.
2010-02-06 * nlsfuncs.cc (__set_charset_from_locale): Set default locale forCorinna Vinschen
"uz_UZ" locale to ISO-8859-1, with the "@cyrillic" modifier to UTF-8.
2010-02-05* dll_init.cc (per_module::run_dtors): Use consistent method for runningChristopher Faylor
destructors.
2010-02-05* regcomp.c (p_ere): Workaround incorrect compiler warning.Christopher Faylor
* regerror.c (regatoi): Return non-const string or compiler complains in certain inexplicable situations.
2010-02-04 * regex/engine.c (step): Declare and define with `int ch' rather thanCorinna Vinschen
`wint_t ch' parameter. Explain why. (NONCHAR): Remove related Cygwin patch here, including wrong comment.
2010-02-04 Replace regex files with multibyte-aware version from FreeBSD.Corinna Vinschen
* Makefile.in (install-headers): Remove extra command to install regex.h. (uninstall-headers): Remove extra command to uninstall regex.h. * nlsfuncs.cc (collate_lcid): Make externally available to allow access to collation internals from regex functions. (collate_charset): Ditto. * wchar.h: Add __cplusplus guards to make C-clean. * include/regex.h: New file, replacing regex/regex.h. Remove UCB advertising clause. * regex/COPYRIGHT: Accommodate BSD license. Remove UCB advertising clause. * regex/cclass.h: Remove. * regex/cname.h: New file from FreeBSD. * regex/engine.c: Ditto. (NONCHAR): Tweak for Cygwin. * regex/engine.ih: Remove. * regex/mkh: Remove. * regex/regcomp.c: New file from FreeBSD. Tweak slightly for Cygwin. Import required collate internals from nlsfunc.cc. (p_ere_exp): Add GNU-specific \< and \> handling for word boundaries. (p_simp_re): Ditto. (__collate_range_cmp): Define. (p_b_term): Use Cygwin-specific collate internals. (findmust): Ditto. * regex/regcomp.ih: Remove. * regex/regerror.c: New file from FreeBSD. Fix a few compiler warnings. * regex/regerror.ih: Remove. * regex/regex.7: New file from FreeBSD. Remove UCB advertising clause. * regex/regex.h: Remove. Replaced by include/regex.h. * regex/regexec.c: New file from FreeBSD. Fix a few compiler warnings. * regex/regfree.c: New file from FreeBSD. * regex/tests: Remove. * regex/utils.h: New file from FreeBSD.
2010-02-03* sigproc.cc (get_proc_lock): Fix error message typo.Christopher Faylor
2010-02-03 * fhandler_disk_file.cc (fhandler_base::fstat_helper): WorkaroundCorinna Vinschen
another bug in NWFS. Add comment to explain why. Improve debug output in case the NT calls to test for binary fail. * path.h (path_conv::fs_is_cifs): New method. (path_conv::fs_is_nwfs): New method.
2010-02-02 * include/paths.h (_PATH_MNTTAB): Define.Corinna Vinschen
(_PATH_MOUNTED): Define. * include/mntent.h: Include paths.h. Define MNTTAB and MOUNTED as their paths.h equivalents. Add comment.
2010-02-02* dcrt0.cc (atexit_lock): Delete.Christopher Faylor
(cygwin_exit): Remove atexit lock. (cygwin_atexit): Ditto. Rename parameter to match newlib. Call __cxa_atexit when invoked by a registered DLL. * dll_init.cc (remove_dll_atexit): Delete. (dll_list::find): New function. (dll_list::detach): Use dll_list::find to find dll associated with return address. Use __cxa_finalize to run atexit functions associated with the dll. (cygwin_detach_dll): Don't assume that HANDLE == void *. * dll_init.h (dll_list::find): Declare. (__cxa_atexit): Ditto. (__cxa_finalize): Ditto. * init.cc (dll_entry): Clarify comment.
2010-02-02 * how-startup-shutdown-works.txt: Add new document.Dave Korn
2010-01-29 * sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value toCorinna Vinschen
decouple from Cygwin release.
2010-01-29 * libc/strfmon.c (__setup_vars): Test for an empty string rather thanCorinna Vinschen
for a NULL pointer.
2010-01-29* dll_init.cc (remove_dll_atexit): New function.Christopher Faylor
(dll_list::detach): Run any atexit handlers registered in the DLL prior to unloading.