]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
14 years ago * nlsfuncs.cc (__set_locale_from_locale_alias): New function to read
Corinna Vinschen [Sun, 7 Feb 2010 13:31:08 +0000 (13:31 +0000)]
* nlsfuncs.cc (__set_locale_from_locale_alias): New function to read
locale aliases from /usr/share/locale/locale.alias.

14 years ago * libc/locale/locale.c: Fix typo in documentation. Remove useless
Corinna Vinschen [Sun, 7 Feb 2010 12:57:48 +0000 (12:57 +0000)]
* libc/locale/locale.c: Fix typo in documentation.  Remove useless
_MB_CAPABLE guards within other _MB_CAPABLE guards.  Add comment
to remaining #endif's.

14 years ago * nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, rather
Corinna Vinschen [Sat, 6 Feb 2010 21:57:33 +0000 (21:57 +0000)]
* nlsfuncs.cc (__get_lcid_from_locale): Handle no_NO as nb_NO, rather
than nn_NO.

14 years ago * setup2.sgml (setup-locale-ov): Align description of working modifiers
Corinna Vinschen [Sat, 6 Feb 2010 21:41:05 +0000 (21:41 +0000)]
* setup2.sgml (setup-locale-ov): Align description of working modifiers
to latest changes.

14 years ago * nlsfuncs.cc (has_modifier): MOve up in file to use in
Corinna Vinschen [Sat, 6 Feb 2010 21:40:53 +0000 (21:40 +0000)]
* nlsfuncs.cc (has_modifier): MOve up in file to use in
__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.

14 years ago * new-features.sgml (ov-new1.7.2): Add support for new charsets.
Corinna Vinschen [Sat, 6 Feb 2010 18:33:40 +0000 (18:33 +0000)]
* new-features.sgml (ov-new1.7.2): Add support for new charsets.
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.

14 years ago * nlsfuncs.cc (__set_charset_from_locale): Set default charset for
Corinna Vinschen [Sat, 6 Feb 2010 18:30:18 +0000 (18:30 +0000)]
* nlsfuncs.cc (__set_charset_from_locale): Set default charset for
"ka_GE" locale to GEORGIAN-PS, for "kk_KZ" to PT154.

14 years ago * libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
Corinna Vinschen [Sat, 6 Feb 2010 18:28:33 +0000 (18:28 +0000)]
* libc/ctype/ctype_cp.h (_CTYPE_GEORGIAN_PS_128_254): Define.
(_CTYPE_GEORGIAN_PS_255): Define.
(_CTYPE_PT154_128_254): Define.
(_CTYPE_PT154_255): Define.
(__ctype_cp): Add array members for above ctype definitions.
* libc/locale/locale.c (loadlocale): Make TIS-620 charset name
available for all targets.  Add guards for setting the conversion
function pointers.  Add support for GEORGIAN-PS and PT154 charsets.
Change documentation to reflect current behaviour more closely.
* libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
"CP101" to "GEORGIAN-PS" and "CP102" to "PT154".
* libc/stdlib/sb_charsets.c (__cp_conv): Add conversion arrays
for GEORGIAN-PS and PT154.
(__cp_index): Map invalid Windows codepage number 101 to
GEORGIAN-PS conversion array, 102 to PT154 conversion array.

14 years ago * path.cc (symlink_info::check_nfs_symlink): Reopen file with
Corinna Vinschen [Sat, 6 Feb 2010 15:57:21 +0000 (15:57 +0000)]
* path.cc (symlink_info::check_nfs_symlink): Reopen file with
FILE_READ_EA access since, surprisingly, you need it to read EAs even
on NFS.

14 years ago * sec_auth.cc (get_full_privileged_inheritable_token): New function
Corinna Vinschen [Sat, 6 Feb 2010 13:13:15 +0000 (13:13 +0000)]
* sec_auth.cc (get_full_privileged_inheritable_token): New function
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.

14 years ago * libc/posix/telldir.c: Remove bogus nested prototype of lseek().
Corinna Vinschen [Sat, 6 Feb 2010 10:32:20 +0000 (10:32 +0000)]
* libc/posix/telldir.c: Remove bogus nested prototype of lseek().

14 years ago * setup2.sgml (setup-locale-ov): Add description for "uz_UZ@cyrillic"
Corinna Vinschen [Fri, 5 Feb 2010 21:38:31 +0000 (21:38 +0000)]
* setup2.sgml (setup-locale-ov): Add description for "uz_UZ@cyrillic"
and "tt_RU@iqtelif" modifiers.  Slightly rephrase locale specifier
description in terms of the modifier string.

14 years ago * nlsfuncs.cc (__set_charset_from_locale): Set default locale for
Corinna Vinschen [Fri, 5 Feb 2010 21:35:34 +0000 (21:35 +0000)]
* nlsfuncs.cc (__set_charset_from_locale): Set default locale for
"uz_UZ" locale to ISO-8859-1, with the "@cyrillic" modifier to UTF-8.

14 years ago * libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
Corinna Vinschen [Fri, 5 Feb 2010 21:24:42 +0000 (21:24 +0000)]
* libc/locale/locale.c (loadlocale): Handle ISO-8859 and KOI8 charsets
so that the dashes are optional.  Align documentation.

14 years ago* dll_init.cc (per_module::run_dtors): Use consistent method for running
Christopher Faylor [Fri, 5 Feb 2010 15:05:22 +0000 (15:05 +0000)]
* dll_init.cc (per_module::run_dtors): Use consistent method for running
destructors.

14 years ago * new-features.sgml (ov-new1.7.2): Add grouping for printf/wprintf.
Corinna Vinschen [Fri, 5 Feb 2010 08:57:32 +0000 (08:57 +0000)]
* new-features.sgml (ov-new1.7.2): Add grouping for printf/wprintf.

14 years ago * libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
Corinna Vinschen [Fri, 5 Feb 2010 08:35:35 +0000 (08:35 +0000)]
* libc/stdio/vfprintf.c: Include locale.h also if _WANT_IO_C99_FORMATS
is defined.  Raise conversion buffer size to make sure it has enough
room for numbers plus grouping character.  Define GROUPING flag.
(_VFPRINTF_R): Add PRINTANDPAD macro.  Handle grouping flag character.
Handle grouping for decimal integer and float values.
* libc/stdio/vfwprintf.c: Ditto.

14 years ago* regcomp.c (p_ere): Workaround incorrect compiler warning.
Christopher Faylor [Thu, 4 Feb 2010 21:05:07 +0000 (21:05 +0000)]
* regcomp.c (p_ere): Workaround incorrect compiler warning.
* regerror.c (regatoi): Return non-const string or compiler complains in
certain inexplicable situations.

14 years ago* libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for atexit
Christopher Faylor [Thu, 4 Feb 2010 17:57:30 +0000 (17:57 +0000)]
* libc/stdlib/__atexit.c (__atexit_lock): Define a global lock for atexit
functions.
(__register_exitproc): Use __atexit_lock rather than a local static lock.
* libc/stdlib/__call_atexit.c: Ditto.

14 years ago * regex/engine.c (step): Declare and define with `int ch' rather than
Corinna Vinschen [Thu, 4 Feb 2010 17:34:44 +0000 (17:34 +0000)]
* regex/engine.c (step): Declare and define with `int ch' rather than
`wint_t ch' parameter.  Explain why.
(NONCHAR): Remove related Cygwin patch here, including wrong comment.

14 years ago * new-features.sgml (ov-new1.7.2): Add multibyte-awareness of regcomp
Corinna Vinschen [Thu, 4 Feb 2010 12:38:00 +0000 (12:38 +0000)]
* new-features.sgml (ov-new1.7.2): Add multibyte-awareness of regcomp
and regexec.

14 years ago Replace regex files with multibyte-aware version from FreeBSD.
Corinna Vinschen [Thu, 4 Feb 2010 12:35:49 +0000 (12:35 +0000)]
Replace regex files with multibyte-aware version from FreeBSD.
* 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.

14 years agomerge from gcc
DJ Delorie [Wed, 3 Feb 2010 23:27:54 +0000 (23:27 +0000)]
merge from gcc

14 years ago* sigproc.cc (get_proc_lock): Fix error message typo.
Christopher Faylor [Wed, 3 Feb 2010 19:57:05 +0000 (19:57 +0000)]
* sigproc.cc (get_proc_lock): Fix error message typo.

14 years ago * fhandler_disk_file.cc (fhandler_base::fstat_helper): Workaround
Corinna Vinschen [Wed, 3 Feb 2010 16:05:33 +0000 (16:05 +0000)]
* fhandler_disk_file.cc (fhandler_base::fstat_helper): Workaround
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.

14 years agoAdd NT_386_XSTATE.
H.J. Lu [Tue, 2 Feb 2010 12:37:40 +0000 (12:37 +0000)]
Add NT_386_XSTATE.

bfd/

2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>

* elf-bfd.h (elfcore_write_xstatereg): New.

* elf.c (elfcore_grok_xstatereg): New.
(elfcore_write_xstatereg): Likewise.
(elfcore_grok_note): Handle NT_X86_XSTATE.
(elfcore_write_register_note): Handle .reg-xstate section.

binutils/

2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>

* readelf.c (get_note_type): Handle NT_X86_XSTATE.

include/elf/

2010-02-02  H.J. Lu  <hongjiu.lu@intel.com>

* common.h (NT_386_XSTATE): New.

14 years ago * include/paths.h (_PATH_MNTTAB): Define.
Corinna Vinschen [Tue, 2 Feb 2010 11:17:54 +0000 (11:17 +0000)]
* include/paths.h (_PATH_MNTTAB): Define.
(_PATH_MOUNTED): Define.
* include/mntent.h: Include paths.h.  Define MNTTAB and MOUNTED as their
paths.h equivalents.  Add comment.

14 years ago* dcrt0.cc (atexit_lock): Delete.
Christopher Faylor [Tue, 2 Feb 2010 02:00:01 +0000 (02:00 +0000)]
* dcrt0.cc (atexit_lock): Delete.
(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.

14 years ago * how-startup-shutdown-works.txt: Add new document.
Dave Korn [Tue, 2 Feb 2010 01:54:55 +0000 (01:54 +0000)]
* how-startup-shutdown-works.txt: Add new document.

14 years ago * faq-programming.xml: Update for Cygwin docbook-utils package.
Yaakov Selkowitz [Tue, 2 Feb 2010 01:18:03 +0000 (01:18 +0000)]
* faq-programming.xml: Update for Cygwin docbook-utils package.

14 years ago * README: Update for Cygwin docbook-utils package.
Yaakov Selkowitz [Tue, 2 Feb 2010 01:02:49 +0000 (01:02 +0000)]
* README: Update for Cygwin docbook-utils package.

14 years ago * configure.ac: Add "recommended" version checks for GMP/MPC.
Kaveh Ghazi [Sun, 31 Jan 2010 18:40:33 +0000 (18:40 +0000)]
* configure.ac: Add "recommended" version checks for GMP/MPC.
Update recommended GMP/MPFR/MPC versions.
* configure: Regenerate.

14 years ago2010-01-29 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Fri, 29 Jan 2010 23:04:21 +0000 (23:04 +0000)]
2010-01-29  Jeff Johnston  <jjohnstn@redhat.com>

        * libc/search/Makefile.am: Create .def files for bsearch and qsort.
        * libc/search/Makefile.in: Regenerated.
        * libc/stdlib/stdlib.tex: Add bsearch and qsort.

14 years ago * sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value to
Corinna Vinschen [Fri, 29 Jan 2010 19:51:11 +0000 (19:51 +0000)]
* sec_auth.cc (lsaauth): Use CYG_LSA_MAGIC as checksum start value to
decouple from Cygwin release.

14 years ago * cyglsa.c: Include lmcons.h instead of lm.h to make newer WinDDK happy.
Corinna Vinschen [Fri, 29 Jan 2010 19:50:15 +0000 (19:50 +0000)]
* cyglsa.c: Include lmcons.h instead of lm.h to make newer WinDDK happy.
(LsaApLogonUserEx): Use CYG_LSA_MAGIC as checksum start value to
decouple from Cygwin release.
* make-64bit-version-with-visual-c.bat: Avoid compiler warning.
* cyglsa64.dll: New build.

14 years ago * libc/strfmon.c (__setup_vars): Test for an empty string rather than
Corinna Vinschen [Fri, 29 Jan 2010 19:38:22 +0000 (19:38 +0000)]
* libc/strfmon.c (__setup_vars): Test for an empty string rather than
for a NULL pointer.

14 years ago* dll_init.cc (remove_dll_atexit): New function.
Christopher Faylor [Fri, 29 Jan 2010 18:34:09 +0000 (18:34 +0000)]
* dll_init.cc (remove_dll_atexit): New function.
(dll_list::detach): Run any atexit handlers registered in the DLL prior to
unloading.

14 years ago* libc/strfmon.c (__setup_vars): Fix compiler warning about assigning const
Christopher Faylor [Fri, 29 Jan 2010 17:37:54 +0000 (17:37 +0000)]
* libc/strfmon.c (__setup_vars): Fix compiler warning about assigning const
strings.  Compare a pointer to NULL rather than '\0'.
* dll_init.cc (dll_dllcrt0_1): Minor comment fix.
* pipe.cc (fhandler_pipe::create_selectable): Remove Win9x accommodation.

14 years ago Throughout, use FileBothDirectoryInformation info class rather than
Corinna Vinschen [Fri, 29 Jan 2010 11:20:06 +0000 (11:20 +0000)]
Throughout, use FileBothDirectoryInformation info class rather than
FileDirectoryInformation info class to avoid problems with incomplete
filesystem implementations.  Fix comments accordingly.
* fhandler_disk_file.cc (fhandler_disk_file::readdir_helper): Set
fname->Length to 0 in error case to avoid potential crash in debug
output.
(fhandler_disk_file::readdir): Try to speed up the working default case.
Check for STATUS_INVALID_NETWORK_RESPONSE as potential status value
returned by filesystems not implementing FileIdBothDirectoryInformation.
* ntdll.h (STATUS_INVALID_NETWORK_RESPONSE): Define.
(FILE_BOTH_DIRECTORY_INFORMATION): Rename to official name.
* path.cc (symlink_info::check): Don't request FILE_READ_EA access, it's
not required for NFS.  Try to speed up the working default case.  Check
for STATUS_INVALID_NETWORK_RESPONSE as potential status value returned
by filesystems not supporting non-NULL EA parameters.  Fix the way
fs.update is called.  Improve debug output.

14 years ago2010-01-26 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
Chris Sutcliffe [Fri, 29 Jan 2010 00:41:58 +0000 (00:41 +0000)]
2010-01-26  Chris Sutcliffe  <ir0n3h4d@users.sourceforge.net>

        * include/shldisp.h (AUTOCOMPLETEOPTIONS): Add version guard around
        ACO_WORD_FILTER and ACO_NOPREFIXFILTERING.

14 years ago * Makefile.in (tags, ctags, CTAGS)): Add rules to create tags file.
Corinna Vinschen [Thu, 28 Jan 2010 11:54:00 +0000 (11:54 +0000)]
* Makefile.in (tags, ctags, CTAGS)): Add rules to create tags file.

14 years ago2010-01-26 Chris Sutcliffe <ir0n3h4d@users.sourceforge.net>
Chris Sutcliffe [Thu, 28 Jan 2010 01:16:55 +0000 (01:16 +0000)]
2010-01-26  Chris Sutcliffe  <ir0n3h4d@users.sourceforge.net>

        * include/shldisp.h (AUTOCOMPLETEOPTIONS): Add enum.

14 years ago* faq-api.xml: d2u/u2d are from cygutils, not util-linux.
Yaakov Selkowitz [Tue, 26 Jan 2010 19:26:59 +0000 (19:26 +0000)]
* faq-api.xml: d2u/u2d are from cygutils, not util-linux.

14 years ago* Makefile.in: Skip validation in xmlto step.
Christopher Faylor [Tue, 26 Jan 2010 16:16:19 +0000 (16:16 +0000)]
* Makefile.in: Skip validation in xmlto step.
* overview.sgml: Clarify language in "A brief history of Cygwin".

14 years ago * new-features.sgml (ov-new1.7.2): Add console enhancements.
Corinna Vinschen [Tue, 26 Jan 2010 16:09:46 +0000 (16:09 +0000)]
* new-features.sgml (ov-new1.7.2): Add console enhancements.

14 years ago2010-01-25 Kai Tietz <kai.tietz@onevision.com>
Chris Sutcliffe [Mon, 25 Jan 2010 22:58:03 +0000 (22:58 +0000)]
2010-01-25  Kai Tietz  <kai.tietz@onevision.com>

        Implement TLS Callback.

        * tlsmcrt.c: New file.
        * tlsmthread.c: Ditto.
        * tlssup.c: Ditto.
        * tlsthrd.c: Ditto.
        * Makefile.in: Include new files.
        * crt1.c: Implement TLS Callback.
        * dllcrt1.c: Ditto.
        * mthr_stub.c: Remove.

14 years ago * nlsfuncs.cc (__get_lcid_from_locale): Add comments. Fix typos in
Corinna Vinschen [Mon, 25 Jan 2010 21:20:31 +0000 (21:20 +0000)]
* nlsfuncs.cc (__get_lcid_from_locale): Add comments.  Fix typos in
comments.  Make sure to set last_lcid every time.  Return locale
without territory part as invalid.  Handle modern serbian territory
names per ISO 3166 on older systems as well.  Add appropriate comment.
(__set_charset_from_locale): Handle LCID for sr_CS as well to make older
systems happy.

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Mon, 25 Jan 2010 18:06:22 +0000 (18:06 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Make inclusion of
target-libgomp conditional on libgomb being in target_configdirs.
* configure: Regenerate.

14 years ago * faq-setup.xml: Drop references to non-NT systems.
Corinna Vinschen [Mon, 25 Jan 2010 17:04:29 +0000 (17:04 +0000)]
* faq-setup.xml: Drop references to non-NT systems.
* faq-using.xml: Ditto.
(faq.using.sshd-in-domain): New FAQ entry.

14 years ago * nlsfuncs.cc (__set_charset_from_locale): Rearrange to set charset
Corinna Vinschen [Mon, 25 Jan 2010 11:55:46 +0000 (11:55 +0000)]
* nlsfuncs.cc (__set_charset_from_locale): Rearrange to set charset
more closely aligned to Glibc.

14 years ago * spawn.cc (spawn_guts): Only try to remove long path prefix from
Corinna Vinschen [Mon, 25 Jan 2010 11:21:56 +0000 (11:21 +0000)]
* spawn.cc (spawn_guts): Only try to remove long path prefix from
runpath if runpath is not NULL.

14 years ago * faq-using.xml: Fix typos and remove incorrect locale-specific
Corinna Vinschen [Mon, 25 Jan 2010 10:50:21 +0000 (10:50 +0000)]
* faq-using.xml: Fix typos and remove incorrect locale-specific
documentation.
* new-features.sgml: Ditto.
* pathnames.sgml: Ditto.

14 years ago * nlsfuncs.cc (__get_lcid_from_locale): Fix a comment. Handle special
Corinna Vinschen [Mon, 25 Jan 2010 10:44:56 +0000 (10:44 +0000)]
* nlsfuncs.cc (__get_lcid_from_locale):  Fix a comment.  Handle special
language/TERRITORY combinations explicitely.  Explain why.

14 years ago * getlocale.c (main): Use setlocale and fetch string from Windows
Corinna Vinschen [Mon, 25 Jan 2010 09:22:12 +0000 (09:22 +0000)]
* getlocale.c (main): Use setlocale and fetch string from Windows
using GetLocaleInfoW.  Explain why.

14 years ago * new-features.sgml: Rework layout to use itemizedlist. Fix typo.
Corinna Vinschen [Sun, 24 Jan 2010 15:08:01 +0000 (15:08 +0000)]
* new-features.sgml: Rework layout to use itemizedlist.  Fix typo.
Add two missing entries.

14 years ago * nlsfuncs.cc (__set_charset_from_locale): Fix comment.
Corinna Vinschen [Sun, 24 Jan 2010 14:43:51 +0000 (14:43 +0000)]
* nlsfuncs.cc (__set_charset_from_locale): Fix comment.

14 years ago * nlsfuncs.cc (check_codepage): Move from syscalls.cc here.
Corinna Vinschen [Sun, 24 Jan 2010 12:29:49 +0000 (12:29 +0000)]
* nlsfuncs.cc (check_codepage): Move from syscalls.cc here.
(internal_setlocale): Ditto.
(initial_setlocale): Ditto.
(setlocale): Ditto.
* strfuncs.cc (__sjis_wctomb): Revert previous patch.
(__sjis_mbtowc): Ditto.
* syscalls.cc: Move setlocale-related functions to nlsfuncs.cc.

14 years ago * libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
Corinna Vinschen [Sun, 24 Jan 2010 12:18:20 +0000 (12:18 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): Return "CP932" when using
SJIS on Cygwin.  Explain why.

14 years ago * setup2.sgml (setup-locale-charsetlist): Add CP932. Change description
Corinna Vinschen [Sat, 23 Jan 2010 16:44:00 +0000 (16:44 +0000)]
* setup2.sgml (setup-locale-charsetlist): Add CP932.  Change description
for SJIS.

14 years ago * strfuncs.cc (__sjis_wctomb): Special handling for characters which
Corinna Vinschen [Sat, 23 Jan 2010 16:43:17 +0000 (16:43 +0000)]
* strfuncs.cc (__sjis_wctomb): Special handling for characters which
differ between SJIS and Windows codepage 932, if charset is "SJIS".
(__sjis_mbtowc): Ditto.
(_jis_wctomb): Remove.
(__jis_mbtowc): Remove.

14 years ago * libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
Corinna Vinschen [Sat, 23 Jan 2010 16:41:08 +0000 (16:41 +0000)]
* libc/locale/locale.c (loadlocale): Allow CP932 as alias for SJIS.
Add to documentation.  Add a few comments to #endif's for Cygwin.

14 years ago * setup2.sgml (setup-locale-charsetlist): Add ASCII and TIS-620. Add
Corinna Vinschen [Sat, 23 Jan 2010 15:03:06 +0000 (15:03 +0000)]
* setup2.sgml (setup-locale-charsetlist): Add ASCII and TIS-620.  Add
various aliases and case differences.

14 years ago * libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
Corinna Vinschen [Sat, 23 Jan 2010 14:32:25 +0000 (14:32 +0000)]
* libc/locale/locale.c (loadlocale): Disable JIS entirely on Cygwin.
Allow TIS620 and TIS-620 as aliases for CP874 on Cygwin.

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Sat, 23 Jan 2010 11:32:15 +0000 (11:32 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (bootstrap_target_libs): Include target-libgomp.
* configure: Regenerate.

14 years ago * nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag to
Corinna Vinschen [Sat, 23 Jan 2010 10:11:43 +0000 (10:11 +0000)]
* nlsfuncs.cc (wcsxfrm): Call LCMapStringW with LCMAP_BYTEREV flag to
allow correct comparison using wcscmp.

14 years ago * posix.sgml (strfmon): Move to implemented SUSv4 API.
Corinna Vinschen [Fri, 22 Jan 2010 22:33:22 +0000 (22:33 +0000)]
* posix.sgml (strfmon): Move to implemented SUSv4 API.

14 years ago * new-features.sgml (ov-new1.7.2): Add chapter for news in 1.7.2.
Corinna Vinschen [Fri, 22 Jan 2010 22:32:42 +0000 (22:32 +0000)]
* new-features.sgml (ov-new1.7.2): Add chapter for news in 1.7.2.
* setup2.sgml (setup-locale-ov): Describe how valid locales are
determined by Windows locale support.  Change description for modifiers
in locale environment variables.
(setup-locale-how): Describe new charset behaviour.  Mention new
getlocale tool to fetch valid locale information from Windows.
(setup-locale-missing): Drop now implemented LC_foo options.
Explain missing LC_MESSAGES in more detail.

14 years ago * Makefile.in (CYGWIN_BINS): Add getlocale.
Corinna Vinschen [Fri, 22 Jan 2010 22:31:50 +0000 (22:31 +0000)]
* Makefile.in (CYGWIN_BINS): Add getlocale.
* getlocale.c: New file.
* utils.sgml (getlocale): New section describing new getlocale tool.

14 years ago * Makefile.in (DLL_OFILES): Add nlsfunc.o and strfmon.o.
Corinna Vinschen [Fri, 22 Jan 2010 22:31:31 +0000 (22:31 +0000)]
* Makefile.in (DLL_OFILES): Add nlsfunc.o and strfmon.o.
* autoload.cc (LocaleNameToLCID): Define.
* cygwin.din (strfmon): Export.
* nlsfuncs.cc: New file.  Define a lot of internal functions called
from setlocale.
(wcscoll): Implement locale-aware here, using CompareStringW function.
(strcoll): Ditto.
(wcsxfrm): Implement locale-aware here, usingLCMapStringW function.
(strxfrm): Ditto.
(__set_charset_from_locale): Replace __set_charset_from_codepage.
Return Linux-compatible charset.
* strfuncs.cc (__set_charset_from_codepage): Remove.
* wchar.h (__set_charset_from_codepage): Drop definition.
* wincap.h (wincaps::has_localenames): New element.
* wincap.cc: Implement above element throughout.
* libc/strfmon.c: New file.
* libc/strptime.cc: Remove locale constant strings in favor of
access to locale-specifc data.
(strptime): Point _CurrentTimeLocale to locale-specific data.
Throughout use correct locale-specific format fields for all
locale-specific formats.
* include/monetary.h: New file.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

14 years ago gcc PR libstdc++/36101, gcc PR libstdc++/42813
Joern Rennecke [Fri, 22 Jan 2010 16:28:25 +0000 (16:28 +0000)]
gcc PR libstdc++/36101, gcc PR libstdc++/42813
* configure.ac (target_configdirs): Substitute.
* Makefile.def: Bootstrap target module libgomp.
Add dependency of all-target-libstdc++-v3 on configure-target-libgomp.
* Makefile.tpl (TARGET_CONFIGDIRS): New makefile variable.
(BASE_TARGET_EXPORTS): Export TARGET_CONFIGDIRS.
* configure, Makefile.in: Regenerate.

14 years ago * libc/locale/lmonetary.c (__monetary_load_locale): Take additional
Corinna Vinschen [Fri, 22 Jan 2010 13:03:42 +0000 (13:03 +0000)]
* libc/locale/lmonetary.c (__monetary_load_locale): Take additional
parameters for wide char to multibyte conversion.  Call
__set_lc_monetary_from_win on Cygwin.
* libc/locale/lmonetary.h: Make C++-safe.
(__monetary_load_locale): Change declaration.
* libc/locale/lnumeric.c (__numeric_load_locale): Take additional
parameters for wide char to multibyte conversion.  Call
__set_lc_numeric_from_win on Cygwin.
* libc/locale/lnumeric.h: Make C++-safe.
(__numeric_load_locale): Change declaration.
* libc/locale/locale.c (lconv): De-constify for Cygwin.
(__set_charset_from_locale): Rename from
__set_charset_from_codepage.  Take locale as parameter instead of
a codepage.
(loadlocale): Allow "EUC-JP" for "EUCJP" and "EUC-KR" for "EUCKR".
Change documnetation accordingly.  Enable LC_COLLATE, LC_MONETARY,
LC_NUMERIC, and LC_TIME handling on Cygwin.
(_localeconv_r): On Cygwin, copy values from monetary and numeric
domain if change has been noted.
* libc/locale/nl_langinfo.c (nl_langinfo): Accommodate change of
am/pm layout in struct lc_time_T.
* libc/locale/timelocal.c (_C_time_locale): Accommodate
redefinition of am/pm members.
(__time_load_locale): Take additional parameters for wide char
to multibyte conversion.  Call __set_lc_time_from_win on Cygwin.
* libc/locale/timelocal.h: Make C++-safe.
(struct lc_time_T): Convert am and pm to a am_pm array for easier
consumption by strftime and strptime.
(__time_load_locale): Change declaration.
* libc/time/strftime.c: Change documentation to reflect changes to
strftime.  Remove locale constant strings in favor of access to
locale-specifc data.
(_ctloc): Define access method for locale-specifc data.
(TOLOWER): Define for tolower conversion.
(strftime): Throughout, convert locale-specific formats to use
locale-specific data.  Add GNU-specific "%P" format.
* libc/time/strptime.c: Remove locale constant strings in favor of
access to locale-specifc data.
(_ctloc): Define access method for locale-specifc data.
(strptime): Throughout, convert locale-specific formats to use
locale-specific data.

14 years ago2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
Andreas Krebbel [Thu, 21 Jan 2010 11:40:28 +0000 (11:40 +0000)]
2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* readelf.c (get_machine_flags): Handle EF_S390_HIGH_GPRS.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* s390.h (EF_S390_HIGH_GPRS): Added macro definition.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* config/tc-s390.c (s390_elf_final_processing): New function.
* config/tc-s390.h (elf_tc_final_processing): New macro definition.
(s390_elf_final_processing): Added prototype.

2010-01-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>

* elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
(bfd_elf32_bfd_merge_private_bfd_data): New macro definition.

14 years ago * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
Corinna Vinschen [Wed, 20 Jan 2010 13:18:24 +0000 (13:18 +0000)]
* libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate
often-used charsets into Linux compatible codesets.

14 years ago2010-01-19 Andy Koppe <andy.koppe@gmail.com>
Jeff Johnston [Tue, 19 Jan 2010 23:16:45 +0000 (23:16 +0000)]
2010-01-19  Andy Koppe  <andy.koppe@gmail.com>

        * libc/stdio/vfscanf.c (__SVFSCANF_R): Fix handling of non-ASCII
        characters and allow invalid bytes in format string.

14 years ago * libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
Corinna Vinschen [Tue, 19 Jan 2010 21:14:53 +0000 (21:14 +0000)]
* libc/stdlib/wcstombs_r.c (_wcstombs_r): Handle invalid characters
correctly also in the s==NULL case.

14 years ago * common.h (PN_XNUM): Define.
Alan Modra [Tue, 19 Jan 2010 13:50:25 +0000 (13:50 +0000)]
    * common.h (PN_XNUM): Define.

14 years ago * strfuncs.cc: Remove needless includes.
Corinna Vinschen [Mon, 18 Jan 2010 16:07:22 +0000 (16:07 +0000)]
* strfuncs.cc: Remove needless includes.

14 years ago * libc/locale/locale.c (loadlocale): Change comments to refer to
Corinna Vinschen [Sun, 17 Jan 2010 14:57:32 +0000 (14:57 +0000)]
* libc/locale/locale.c (loadlocale): Change comments to refer to
ISO 639-3 rather than 639-2.

14 years ago * setup2.sgml (setup-locale): Mention three character codes per
Corinna Vinschen [Sun, 17 Jan 2010 14:55:57 +0000 (14:55 +0000)]
* setup2.sgml (setup-locale): Mention three character codes per
ISO 639-3.

* setup2.sgml (setup-locale): Adapt description to the C using ASCII
change in 1.7.2.

14 years ago * libc/locale/locale.c (loadlocale): Allow three character
Corinna Vinschen [Sun, 17 Jan 2010 14:41:58 +0000 (14:41 +0000)]
* libc/locale/locale.c (loadlocale): Allow three character
language codes to accommodate ISO 639-2 codes.

14 years ago * syscalls.cc (internal_setlocale): Use UTF-8 internally if external
Corinna Vinschen [Sun, 17 Jan 2010 09:41:01 +0000 (09:41 +0000)]
* syscalls.cc (internal_setlocale): Use UTF-8 internally if external
charset is ASCII.

14 years ago * libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
Corinna Vinschen [Sun, 17 Jan 2010 09:39:06 +0000 (09:39 +0000)]
* libc/locale/locale.c (lc_ctype_charset): Disable defaulting to
"UTF-8" on Cygwin.
(lc_message_charset): Ditto.
(loadlocale): Disable setting charset of the "C" locale to "UTF-8" on
Cygwin.
* libc/stdlib/mbtowc_r.c (__mbtowc): Add Cygwin-specific comment.
* libc/stdlib/wctomb_r.c (__wctomb): Ditto.

14 years ago* setup-net.sgml: Remove obsolete assertion.
Christopher Faylor [Sat, 16 Jan 2010 18:06:27 +0000 (18:06 +0000)]
* setup-net.sgml: Remove obsolete assertion.

14 years ago * libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.
Corinna Vinschen [Sat, 16 Jan 2010 15:11:56 +0000 (15:11 +0000)]
* libc/fnmatch.c: Replace with multibyte capable version from FreeBSD.

14 years ago * cygpath.cc (get_mixed_name): Drop function. Replace with call to
Corinna Vinschen [Sat, 16 Jan 2010 10:25:58 +0000 (10:25 +0000)]
* cygpath.cc (get_mixed_name): Drop function.  Replace with call to
convert_slashes throughout.
(do_sysfolders): Free allocated buffer.
(do_pathconv): Fix freeing last buffer.

14 years ago * fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
Corinna Vinschen [Sat, 16 Jan 2010 10:22:58 +0000 (10:22 +0000)]
* fhandler_socket.cc (fhandler_socket::accept4): Reset async flag
on accepted socket.

14 years ago * faq-using.xml (faq.using.bloda): Clarify wxvault.dll.
Corinna Vinschen [Fri, 15 Jan 2010 21:41:47 +0000 (21:41 +0000)]
* faq-using.xml (faq.using.bloda): Clarify wxvault.dll.

14 years ago * fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
Corinna Vinschen [Fri, 15 Jan 2010 21:34:27 +0000 (21:34 +0000)]
* fhandler_socket.cc (fhandler_socket::accept4): Set nonblocking
flag exactly according to flags, as on Linux.
* net.cc (cygwin_accept): Maintain BSD semantics here.

14 years ago* faq-setup.xml: Add missing setup options. Sort options.
Christopher Faylor [Fri, 15 Jan 2010 18:47:31 +0000 (18:47 +0000)]
* faq-setup.xml: Add missing setup options.  Sort options.

14 years ago * cygwin.din (accept4): Export.
Corinna Vinschen [Fri, 15 Jan 2010 15:40:05 +0000 (15:40 +0000)]
* cygwin.din (accept4): Export.
* fhandler.h (fhandler_socket::accept4): Rename from accept.  Take
additional flag parameter.
* fhandler_socket.cc (fhandler_socket::accept4): Ditto.  Handle
SOCK_NONBLOCK and SOCK_CLOEXEC flags.
* net.cc (cygwin_socket): Handle SOCK_NONBLOCK and SOCK_CLOEXEC flags
in type.  Check for invalid flag values.
(socketpair): Ditto.
(cygwin_accept): Accommodate renaming of fhandler_socket::accept
function to accept4.
(accept4): New function.
* posix.sgml: Mention accept4 as GNU extensions.
* include/cygwin/socket.h (SOCK_NONBLOCK): Define.
(SOCK_CLOEXEC): Define.
(_SOCK_FLAG_MASK): Define when building Cygwin.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.
* include/sys/socket.h (accept4): Declare.

14 years ago * posix.sgml: Mention dup3 and pipe2 as GNU extensions.
Corinna Vinschen [Fri, 15 Jan 2010 14:22:42 +0000 (14:22 +0000)]
* posix.sgml: Mention dup3 and pipe2 as GNU extensions.

14 years ago * dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment before
Corinna Vinschen [Thu, 14 Jan 2010 18:56:24 +0000 (18:56 +0000)]
* dcrt0.cc (dll_crt0_1): Reset locale to "C" at the last moment before
calling the application's main.
* syscalls.cc (internal_setlocale): Don't reset locale to "C here.
Change comment accordingly.

14 years ago * libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
Corinna Vinschen [Thu, 14 Jan 2010 18:49:13 +0000 (18:49 +0000)]
* libc/include/sys/_default_fcntl.h (O_CLOEXEC): Define as _FNOINHERIT.
(F_DUPFD_CLOEXEC): Define for Cygwin.
* libc/include/sys/unistd.h (dup3): Define for Cygwin.
(pipe2): Ditto.

14 years ago * cygwin.din (dup3): Export.
Corinna Vinschen [Thu, 14 Jan 2010 18:46:02 +0000 (18:46 +0000)]
* cygwin.din (dup3): Export.
(pipe2): Export.
* dtable.cc (dtable::dup_worker): Take additional flags parameter.
Handle O_CLOEXEC flag.
(dtable::dup3): Rename from dup2.  Take additional flags parameter.
Check for valid flags.  Drop check for newfd == oldfd.
* dtable.h (dtable::dup_worker): Add flags parameter.
(dtable::dup3): Rename from dup2.
* fcntl.cc (fcntl64): Add F_DUPFD_CLOEXEC case.
* fhandler.h (fhandler_mailslot::get_object_attr): Add flags parameter.
* fhandler.cc (fhandler_base::open): Use security attribute with
inheritance according to setting of O_CLOEXEC flag.
* fhandler_console.cc (fhandler_console::open): Ditto.
* fhandler_fifo.cc (sec_user_cloexec): New inline function to
create security attribute with inheritance according to setting of
O_CLOEXEC flag.
(fhandler_fifo::open): Call sec_user_cloexec to fetch security
attribute.
(fhandler_fifo::wait): Ditto.
* fhandler_mem.cc (fhandler_dev_mem::open): Ditto.
* fhandler_mailslot.cc (fhandler_mailslot::get_object_attr): Take
additional flags parameter.  Use security attribute with inheritance
according to setting of O_CLOEXEC flag.
(fhandler_mailslot::open): Call get_object_attr with flags parameter.
* fhandler_registry.cc (fhandler_registry::open): Call set_close_on_exec
on real handles to accommodate O_CLOEXEC flag.
* fhandler_tty.cc (fhandler_tty_slave::open): Ditto.
* fhandler_tape.cc: Create mutex with inheritance according to setting
of O_CLOEXEC flag.
* pipe.cc: Replace usage of O_NOINHERIT with O_CLOEXEC.
 (fhandler_pipe::init): Simplify setting close_on_exec flag.
(fhandler_pipe::open): Remove setting close_on_exec flag.
(fhandler_pipe::create): Use security attribute with inheritance
according to setting of O_CLOEXEC flag.
(pipe2): New exported function.
* posix_ipc.cc: Throughout, open backing files with O_CLOEXEC
flag to follow POSIX semantics.
* security.h (sec_none_cloexec): New define.
* syscalls.cc (dup): Add missing extern "C" qualifier.  Accommodate
renaming of dtable::dup2 to dtable::dup3.
(dup2): Ditto.  Check newfd == oldfd here.
(dup3): New function.  Check newfd == oldfd here.
(open): Set close_on_exec flag according to O_CLOEXEC flag before
calling fhandler->open.
* include/cygwin/version.h (CYGWIN_VERSION_API_MINOR): Bump.

14 years agoRemove argument name.
H.J. Lu [Thu, 14 Jan 2010 15:18:42 +0000 (15:18 +0000)]
Remove argument name.

2010-01-14  H.J. Lu  <hongjiu.lu@intel.com>

* ia64.h (ia64_find_opcode): Remove argument name.
(ia64_find_next_opcode): Likewise.
(ia64_dis_opcode): Likewise.
(ia64_free_opcode): Likewise.
(ia64_find_dependency): Likewise.

14 years ago Drop accidentally applied ChangeLog entry.
Corinna Vinschen [Thu, 14 Jan 2010 12:49:43 +0000 (12:49 +0000)]
Drop accidentally applied ChangeLog entry.

14 years ago * libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
Corinna Vinschen [Thu, 14 Jan 2010 12:48:58 +0000 (12:48 +0000)]
* libc/stdio/vfprintf.c (_VFPRINTF_R): Just wave bytes invalid in
the current charset through.

14 years ago * include/fcntl.h (O_TTY_INIT): Define as 0.
Corinna Vinschen [Wed, 13 Jan 2010 16:51:37 +0000 (16:51 +0000)]
* include/fcntl.h (O_TTY_INIT): Define as 0.

14 years agoAdd new DW_AT_use_GNAT_descriptive_type CU attribute.
Joel Brobecker [Wed, 13 Jan 2010 11:09:31 +0000 (11:09 +0000)]
Add new DW_AT_use_GNAT_descriptive_type CU attribute.

        * dwarf2.h (dwarf_attribute): Add DW_AT_use_GNAT_descriptive_type.

14 years ago * fhandler_tty.cc (fhandler_tty_master::init): Don't erase all default
Corinna Vinschen [Wed, 13 Jan 2010 11:06:21 +0000 (11:06 +0000)]
* fhandler_tty.cc (fhandler_tty_master::init): Don't erase all default
termios settings of slave console.

This page took 0.068333 seconds and 5 git commands to generate.