summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * regex/regcomp.c (wgetnext): Use size_t as type for n2 since that'sCorinna Vinschen2010-02-123-2/+9
| | | | | what's returned by mbrtowc. * regex/regexec.c (xmbrtowc): Ditto.
* * pthread.cc (pthread_mutex_init): Explicitly fill out third arg toChristopher Faylor2010-02-124-63/+46
| | | | | | | | | | | | | | | | | | | | 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.
* fix typoChristopher Faylor2010-02-121-1/+1
|
* * regex/regcomp.c (xwcrtomb): New function to convert wide charsCorinna Vinschen2010-02-123-5/+62
| | | | | | | 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.
* * sec_auth.cc (get_user_local_groups): Retrieve name of well knownCorinna Vinschen2010-02-124-12/+40
| | | | | | 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-11 Pierre Humblet <Pierre.Humblet@ieee.org>Pierre Humblet2010-02-122-1/+5
| | | | * registry.c (get_registry_hive_path): Add space in string.
* * regex/engine.c (step): Drop Cygwin-specific definition.Corinna Vinschen2010-02-114-22/+42
| | | | | | | | | | | | | | | | (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.
* * new-features.sgml (ov-new1.7.2): Rephrase getlocale entry.Corinna Vinschen2010-02-112-1/+6
|
* * getlocale.c (main): Rename local variable to avoid problems.Corinna Vinschen2010-02-113-24/+83
| | | | | | | | Avoid string comparisons, rather test language and sublanguage codes wheere possible. Add more code to handle Serbian language/territory state identical on all Windows versions. Fix handling for "@latin" modifier in Belarusian locale. * utils.sgml (getlocale): Try to make wording and example clearer.
* * nlsfuncs.cc (initial_setlocale): Move check whether charset hasCorinna Vinschen2010-02-112-3/+14
| | | | | | changed from here... (internal_setlocale): ...to here, to avoid unnecessary work when invoked via CW_INT_SETLOCALE.
* * getlocale.c (usage): Change text slightly.Corinna Vinschen2010-02-102-2/+6
|
* * getlocale.c (main): Restrict -a loop to avoid psudo language entriesCorinna Vinschen2010-02-102-1/+6
| | | | on Vista and later.
* * getlocale.c (main): Revamp -a loop to avoid duplicates and to printCorinna Vinschen2010-02-102-16/+81
| | | | locales with the correct, supported modifiers.
* * new-features.sgml (ov-new1.7.2): Add LC_MESSAGES support.Corinna Vinschen2010-02-103-23/+12
| | | | | * setup2.sgml (setup-locale-ov): Change "@euro" modifier description. (setup-locale-missing): Remove.
* * nlsfuncs.cc (__set_charset_from_locale): Allow "@euro" modifier onlyCorinna Vinschen2010-02-102-1/+9
| | | | for locales which use EUR as currency.
* * nlsfuncs.cc (__get_lcid_from_locale): Convert iu_CA to iu-Latn-CACorinna Vinschen2010-02-102-2/+18
| | | | | rather than iu-Cans-CA on Vista and later. (__set_charset_from_locale): Set default charset for iu_CA to UTF-8.
* * dcrt0.cc (_dll_crt0): Set _main_tls as early as possible.Christopher Faylor2010-02-104-97/+104
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * cygtls.h (struct _cygtls): Remove unneeded elements.Christopher Faylor2010-02-104-43/+37
| | | | | * thread.cc (pthread::exit): Avoid potential double call to _my_tls.remove. * tlsoffsets.h: Regenerate.
* * nlsfuncs.cc (lc_wcstombs): Add `return_invalid' flag to specifyCorinna Vinschen2010-02-091-23/+18
| | | | | | | | 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.
* * nlsfuncs.cc (__set_lc_messages_from_win): Fix typo.Corinna Vinschen2010-02-092-1/+5
|
* * lc_msg.h: New file, fix a problem in locales with modifiers.Corinna Vinschen2010-02-092-8/+13
|
* * lc_msg.h: New file, generated from running Linux system.Corinna Vinschen2010-02-092-189/+267
|
* * lc_msg.h: New file, autogenerated from CLDR data.Corinna Vinschen2010-02-093-17/+315
| | | | | | | | | | | | | | * 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.
* Now *really* check in what should have been checked in 12 hours ago.Corinna Vinschen2010-02-081-2/+10
|
* This patch got lost in the previous checkin, accidentally:Corinna Vinschen2010-02-081-1/+1
| | | | * nlsfuncs.cc (lc_mbstowcs): Fix call to f_mbtowc.
* * external.cc (cygwin_internal): Add CW_INT_SETLOCALE case toCorinna Vinschen2010-02-084-4/+23
| | | | | | | | | | 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.
* * new-features.sgml (ov-new1.7-misc): Fix typo.Yaakov Selkowitz2010-02-072-1/+5
|
* * nlsfuncs.cc (__get_lcid_from_locale): Handle "@cyrillic" modifierCorinna Vinschen2010-02-072-3/+22
| | | | | for uz_UZ locale here. (__set_charset_from_locale): Accommodate above change.
* * new-features.sgml (ov-new1.7.2): Add support for locales fromCorinna Vinschen2010-02-073-0/+27
| | | | | /usr/share/locale/locale.alias. * setup2.sgml (setup-locale-ov): Ditto.
* * nlsfuncs.cc (__set_locale_from_locale_alias): New function to readCorinna Vinschen2010-02-072-0/+68
| | | | locale aliases from /usr/share/locale/locale.alias.
* * nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, ratherCorinna Vinschen2010-02-062-5/+10
| | | | than nn_NO.
* * setup2.sgml (setup-locale-ov): Align description of working modifiersCorinna Vinschen2010-02-062-19/+38
| | | | to latest changes.
* * nlsfuncs.cc (has_modifier): MOve up in file to use inCorinna Vinschen2010-02-062-27/+61
| | | | | | | | | | __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.
* * new-features.sgml (ov-new1.7.2): Add support for new charsets.Corinna Vinschen2010-02-063-5/+19
| | | | | | | Change text for modifier support. (setup-locale-charsetlist): Add new GEORGIAN-PS and PT154 charsets to list of supported charsets. Reorder list for non-ISO, non-CP charsets alphabetically.
* * nlsfuncs.cc (__set_charset_from_locale): Set default charset forCorinna Vinschen2010-02-062-1/+10
| | | | "ka_GE" locale to GEORGIAN-PS, for "kk_KZ" to PT154.
* * path.cc (symlink_info::check_nfs_symlink): Reopen file withCorinna Vinschen2010-02-062-0/+13
| | | | | FILE_READ_EA access since, surprisingly, you need it to read EAs even on NFS.
* * sec_auth.cc (get_full_privileged_inheritable_token): New functionCorinna Vinschen2010-02-062-52/+74
| | | | | | | | | | | 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.
* * setup2.sgml (setup-locale-ov): Add description for "uz_UZ@cyrillic"Corinna Vinschen2010-02-052-3/+20
| | | | | and "tt_RU@iqtelif" modifiers. Slightly rephrase locale specifier description in terms of the modifier string.
* * nlsfuncs.cc (__set_charset_from_locale): Set default locale forCorinna Vinschen2010-02-052-2/+8
| | | | "uz_UZ" locale to ISO-8859-1, with the "@cyrillic" modifier to UTF-8.
* * dll_init.cc (per_module::run_dtors): Use consistent method for runningChristopher Faylor2010-02-052-2/+7
| | | | destructors.
* * new-features.sgml (ov-new1.7.2): Add grouping for printf/wprintf.Corinna Vinschen2010-02-052-0/+11
|
* * regcomp.c (p_ere): Workaround incorrect compiler warning.Christopher Faylor2010-02-043-3/+9
| | | | | * regerror.c (regatoi): Return non-const string or compiler complains in certain inexplicable situations.
* * regex/engine.c (step): Declare and define with `int ch' rather thanCorinna Vinschen2010-02-042-6/+17
| | | | | `wint_t ch' parameter. Explain why. (NONCHAR): Remove related Cygwin patch here, including wrong comment.
* * new-features.sgml (ov-new1.7.2): Add multibyte-awareness of regcompCorinna Vinschen2010-02-042-1/+6
| | | | and regexec.
* Replace regex files with multibyte-aware version from FreeBSD.Corinna Vinschen2010-02-0423-2107/+2829
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* * sigproc.cc (get_proc_lock): Fix error message typo.Christopher Faylor2010-02-032-1/+5
|
* * fhandler_disk_file.cc (fhandler_base::fstat_helper): WorkaroundCorinna Vinschen2010-02-033-7/+36
| | | | | | | 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.
* * include/paths.h (_PATH_MNTTAB): Define.Corinna Vinschen2010-02-023-3/+19
| | | | | | (_PATH_MOUNTED): Define. * include/mntent.h: Include paths.h. Define MNTTAB and MOUNTED as their paths.h equivalents. Add comment.
* * dcrt0.cc (atexit_lock): Delete.Christopher Faylor2010-02-025-60/+58
| | | | | | | | | | | | | | | (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.
* * how-startup-shutdown-works.txt: Add new document.Dave Korn2010-02-022-0/+169
|