]> sourceware.org Git - newlib-cygwin.git/log
newlib-cygwin.git
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.

14 years ago * syscalls.cc (rename): Don't exit prematurely with EROFS when trying
Corinna Vinschen [Wed, 13 Jan 2010 09:45:18 +0000 (09:45 +0000)]
* syscalls.cc (rename): Don't exit prematurely with EROFS when trying
to rename an AF_LOCAL socket or when trying to replace an AF_LOCAL
socket.

14 years ago * cygwinenv.sgml (cygwinenv-implemented-options): Try to make
Corinna Vinschen [Tue, 12 Jan 2010 16:40:53 +0000 (16:40 +0000)]
* cygwinenv.sgml (cygwinenv-implemented-options): Try to make
compatibility new symlinks vs. old Cygwin clearer.

14 years ago * globals.cc (ro_u_nwfs): New R/O unicode string.
Corinna Vinschen [Tue, 12 Jan 2010 14:47:46 +0000 (14:47 +0000)]
* globals.cc (ro_u_nwfs): New R/O unicode string.
* mount.cc (fs_info::update): Check for NWFS filesystem.  Set
has_buggy_basic_info, if so.  Add comment to explain why.
(fillout_mntent): Add "nwfs" string to fs_names array.
* mount.h (enum fs_info_type): Add nwfs.
(class fs_info): Add has_buggy_basic_info status flag.  Add accessors
for has_buggy_basic_info and is_nwfs.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle): Accommodate
filesystems with broken FileBasicInformation handling.
* path.cc (symlink_info::check): Ditto.
* path.h (path_conv::has_buggy_basic_info): Add method.

14 years ago * dtable.cc (build_fh_name_worker): Remove. Move all functionality
Corinna Vinschen [Tue, 12 Jan 2010 10:14:59 +0000 (10:14 +0000)]
* dtable.cc (build_fh_name_worker): Remove.  Move all functionality
back into build_fh_name.
(build_fh_name): Drop unused HANDLE parameter.  Drop call to pc.fillin.
Remove disabled build_fh_name with UNICODE_STRING name parameter.
* dtable.h (build_fh_name): Drop HANDLE parameter from declaration.
Remove declaration for build_fh_name with UNICODE_STRING name parameter.
* path.cc (path_conv::fillin): Remove.
(symlink_info::check): Fix comment.
* path.h (path_conv::fillin): Remove declaration.
* dir.cc: Accommodate change in build_fh_name parameters throughout.
* sec_acl.cc: Ditto.
* syscalls.cc: Ditto.

* ntea.cc (getxattr_worker): Fix debug output.
(setxattr_worker): Ditto.
* times.cc (utimens_worker): Ditto.

14 years ago2010-01-11 Sebastian Huber <sebastian.huber@embedded-brains.de>
Jeff Johnston [Mon, 11 Jan 2010 23:24:47 +0000 (23:24 +0000)]
2010-01-11  Sebastian Huber <sebastian.huber@embedded-brains.de>

        * libc/posix/telldir.c (_cleanupdir): Fixed usage of freed memory.

14 years ago2010-01-11 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Jeff Johnston [Mon, 11 Jan 2010 22:55:47 +0000 (22:55 +0000)]
2010-01-11  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>

        * libc/include/math.h (log2, log2f): Disable macro versions for C++,
        as they are incompatible with OpenMP/C++ headers.

2

14 years agomerge from gcc
DJ Delorie [Mon, 11 Jan 2010 19:12:42 +0000 (19:12 +0000)]
merge from gcc

14 years ago * pathnames.sgml (mount-table): Add info that posix=0 is default for
Corinna Vinschen [Mon, 11 Jan 2010 18:00:14 +0000 (18:00 +0000)]
* pathnames.sgml (mount-table): Add info that posix=0 is default for
the cygdrive prefix.

14 years ago * fhandler_proc.cc (format_proc_stat): Use new in_buf.
Corinna Vinschen [Mon, 11 Jan 2010 15:10:21 +0000 (15:10 +0000)]
* fhandler_proc.cc (format_proc_stat): Use new in_buf.
(format_proc_cpuinfo): Replace szBuffer with a union in_buf.  Use type
correct throughout.  Add a couple of missing or newer cpu flags.  Allow
certain AMD flags for intel as well.

14 years ago * mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.
Corinna Vinschen [Mon, 11 Jan 2010 12:13:55 +0000 (12:13 +0000)]
* mount.cc (do_mount_from_fstab): Allow to change cygdrive prefix, too.

14 years ago * libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
Corinna Vinschen [Sun, 10 Jan 2010 13:54:34 +0000 (13:54 +0000)]
* libc/stdlib/mbtowc_r.c (__ascii_mbtowc): Disallow conversion of
non-ASCII chars on Cygwin.
* libc/stdlib/wctomb_r.c (__ascii_wctomb): Ditto.

14 years ago * fhandler.h (fhandler_base::fstat_helper): Declare timestamps as
Corinna Vinschen [Sun, 10 Jan 2010 11:12:52 +0000 (11:12 +0000)]
* fhandler.h (fhandler_base::fstat_helper): Declare timestamps as
PLARGE_INTEGER.
* fhandler_disk_file.cc (fhandler_base::fstat_by_handle):
Accommodate fstat_helper change of timestamp arguments.
(fhandler_base::fstat_by_name): Ditto.
(fhandler_base::fstat_helper): Define with timestamps as PLARGE_INTEGER.
Accommodate in call to to_timestruc_t.

14 years agoSync Libtool from GCC.
Ralf Wildenhues [Sat, 9 Jan 2010 21:11:32 +0000 (21:11 +0000)]
Sync Libtool from GCC.

/:
* libtool.m4: Sync from git Libtool.
* ltmain.sh: Likewise.
* ltoptions.m4: Likewise.
* ltversion.m4: Likewise.
* lt~obsolete.m4: Likewise.

sim/iq2000/:
* configure: Regenerate.

sim/d10v/:
* configure: Regenerate.

sim/m32r/:
* configure: Regenerate.

sim/frv/:
* configure: Regenerate.

sim/:
* avr/configure: Regenerate.
* cris/configure: Regenerate.
* microblaze/configure: Regenerate.

sim/h8300/:
* configure: Regenerate.

sim/mn10300/:
* configure: Regenerate.

sim/erc32/:
* configure: Regenerate.

sim/arm/:
* configure: Regenerate.

sim/m68hc11/:
* configure: Regenerate.

sim/lm32/:
* configure: Regenerate.

sim/sh64/:
* configure: Regenerate.

sim/v850/:
* configure: Regenerate.

sim/cr16/:
* configure: Regenerate.

sim/moxie/:
* configure: Regenerate.

sim/m32c/:
* configure: Regenerate.

sim/mips/:
* configure: Regenerate.

sim/mcore/:
* configure: Regenerate.

sim/sh/:
* configure: Regenerate.

gprof/:
* Makefile.in: Regenerate.
* configure: Regenerate.

opcodes/:
* Makefile.in: Regenerate.
* configure: Regenerate.

gas/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.

ld/:
* configure: Regenerate.

gdb/testsuite/:
* gdb.cell/configure: Regenerate.

binutils/:
* Makefile.in: Regenerate.
* configure: Regenerate.
* doc/Makefile.in: Regenerate.

bfd/:
* Makefile.in: Regenerate.
* configure: Regenerate.

bfd/doc/:
* Makefile.in: Regenerate.

14 years ago PR bootstrap/42424
Kaveh Ghazi [Fri, 8 Jan 2010 15:59:17 +0000 (15:59 +0000)]
PR bootstrap/42424
* configure.ac: Include libtool m4 files.
        (_LT_CHECK_OBJDIR): Call it.
(extra_mpc_mpfr_configure_flags, extra_mpc_gmp_configure_flags,
gmplibs, ppllibs, clooglibs): Use $lt_cv_objdir.

* configure: Regenerate.

14 years ago * sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users account
Corinna Vinschen [Fri, 8 Jan 2010 15:55:27 +0000 (15:55 +0000)]
* sec_auth.cc (get_token_group_sidlist): Add BUILTIN\Users account
to all created tokens.
* sec_helper.cc (well_known_users_sid): Define as BUILTIN\Users.
* security.h (well_known_users_sid): Declare.

14 years agoSync from GCC: Makefile.tpl (BASE_TARGET_EXPORTS) fix
Ralf Wildenhues [Thu, 7 Jan 2010 20:00:52 +0000 (20:00 +0000)]
Sync from GCC: Makefile.tpl (BASE_TARGET_EXPORTS) fix

/:
PR bootstrap/41818
* Makefile.tpl (BASE_TARGET_EXPORTS): Only add TARGET_LIB_PATH
to $(RPATH_ENVVAR) if bootstrapping.  Fix typo in comment.
* Makefile.in: Regenerate.

14 years ago * cygpath.cc: Throughout, free obsolete path buffers.
Corinna Vinschen [Thu, 7 Jan 2010 17:19:12 +0000 (17:19 +0000)]
* cygpath.cc: Throughout, free obsolete path buffers.

14 years ago * overview.sgml: Fix Red Hat brand name.
Corinna Vinschen [Thu, 7 Jan 2010 12:18:01 +0000 (12:18 +0000)]
* overview.sgml: Fix Red Hat brand name.

14 years ago * cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
Corinna Vinschen [Thu, 7 Jan 2010 12:08:11 +0000 (12:08 +0000)]
* cygpath.cc (main): Remove enforcing "en_US.UTF-8" locale.
Revert usage of argz functions when reading input from file and
simplify option usage.  Allow only one option argument and use
the rest as filename argument to allow spaces in filenames.  Restrict
processing special folder type options to one line.

14 years ago * basic-modes.h (MAKEDI): New macro.
Doug Evans [Wed, 6 Jan 2010 05:25:24 +0000 (05:25 +0000)]
* basic-modes.h (MAKEDI): New macro.

14 years agomerge from gcc
DJ Delorie [Tue, 5 Jan 2010 21:10:23 +0000 (21:10 +0000)]
merge from gcc

14 years ago* overview.sgml: Fix Red Hat URL.
Christopher Faylor [Mon, 4 Jan 2010 16:24:06 +0000 (16:24 +0000)]
* overview.sgml: Fix Red Hat URL.

14 years ago* dcrt0.cc: Bump copyright.
Christopher Faylor [Fri, 1 Jan 2010 19:28:15 +0000 (19:28 +0000)]
* dcrt0.cc: Bump copyright.
Do the changelog shuffle.

14 years ago* dcrt0.cc (dll_crt0_1): Move internal locale setting prior to potential
Christopher Faylor [Fri, 1 Jan 2010 19:15:11 +0000 (19:15 +0000)]
* dcrt0.cc (dll_crt0_1): Move internal locale setting prior to potential
globify to prevent creation of unglobbed filenames in the wrong character set.

14 years agoUpdate copyright notices to add year 2010.
Joel Brobecker [Fri, 1 Jan 2010 10:03:25 +0000 (10:03 +0000)]
Update copyright notices to add year 2010.

14 years ago * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.
Joel Brobecker [Tue, 29 Dec 2009 04:12:11 +0000 (04:12 +0000)]
    * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNAT_descriptive_type.

14 years ago * fhandler.h (fhandler_socket::wait_for_events): Drop parameter default
Corinna Vinschen [Mon, 28 Dec 2009 17:24:03 +0000 (17:24 +0000)]
* fhandler.h (fhandler_socket::wait_for_events): Drop parameter default
value.
* fhandler_socket.cc (fhandler_socket::connect): Add false as second
parameter to wait_for_events call.
(fhandler_socket::accept): Ditto.
(fhandler_socket::send_internal): Fix typo in call to wait_for_events.

14 years agoMake pty.h match recent glibc.
Eric Blake [Sat, 26 Dec 2009 06:20:56 +0000 (06:20 +0000)]
Make pty.h match recent glibc.

* include/pty.h (openpty, forkpty): Mark last two arguments const,
to match glibc 2.8.
* libc/bsdlib.cc (openpty, forkpty): Likewise.

14 years ago* fhandler_console.cc (handler_console::read): Use the tty's VERASE character
Christopher Faylor [Fri, 25 Dec 2009 17:38:46 +0000 (17:38 +0000)]
* fhandler_console.cc (handler_console::read): Use the tty's VERASE character
as the backspace keycode.

14 years ago * path.cc (symlink_info::check): Set fileattr to
Corinna Vinschen [Thu, 24 Dec 2009 12:53:43 +0000 (12:53 +0000)]
* path.cc (symlink_info::check): Set fileattr to
FILE_ATTRIBUTE_DIRECTORY in a certain error condition.  Explain why.

14 years ago * pathnames.sgml (mount-table): Add missing slash in pathname.
Corinna Vinschen [Wed, 23 Dec 2009 10:43:45 +0000 (10:43 +0000)]
* pathnames.sgml (mount-table): Add missing slash in pathname.

14 years ago* select.cc (fhandler_fifo::select_read): Fill in device specific record.
Christopher Faylor [Wed, 23 Dec 2009 00:35:18 +0000 (00:35 +0000)]
* select.cc (fhandler_fifo::select_read): Fill in device specific record.
(fhandler_fifo::select_write): Ditto.
(fhandler_fifo::select_except): Ditto.

14 years agoFix getsubopt declaration.
Eric Blake [Tue, 22 Dec 2009 13:07:24 +0000 (13:07 +0000)]
Fix getsubopt declaration.

* libc/include/sys/unistd.h (suboptarg, getsubopt): Move...
* libc/include/stdlib.h: ...here, to match POSIX for getsubopt.

14 years ago * path.cc (cygwin_conv_path): Add band-aid including comment to avoid
Corinna Vinschen [Mon, 21 Dec 2009 16:44:37 +0000 (16:44 +0000)]
* path.cc (cygwin_conv_path): Add band-aid including comment to avoid
conversion from POSIX "." to Win32 ".\\".

14 years ago * exec.cc (execvp): Call find_exec with FE_NNF flag to enforce
Corinna Vinschen [Mon, 21 Dec 2009 15:16:28 +0000 (15:16 +0000)]
* exec.cc (execvp): Call find_exec with FE_NNF flag to enforce
a NULL return when executable isn't found in $PATH.  Convert NULL
to "".
(execvpe): Ditto.
* spawn.cc (spawn_guts): Return with EFAULT if prog_arg is NULL.
Return with ENOENT if prog_arg is empty string.  Add a comment.

14 years ago * fhandler_console.cc (get_nonascii_key): Generate ESC prefix
Corinna Vinschen [Mon, 21 Dec 2009 10:11:27 +0000 (10:11 +0000)]
* fhandler_console.cc (get_nonascii_key): Generate ESC prefix
for Alt modifier generically for function keys and keypad keys.
Distinguish Normal, Ctrl, Shift, Ctrl-Shift rather
than Normal, Ctrl, Shift, Alt, so that in combination with generic
Alt handling all 8 combinations of these modifiers are distinguished.
(keytable): Add escape sequences for remaining modified
function keys as a compatible extension using rxvt escape codes.
Also distinguish keypad keys modified with Ctrl, Shift, Ctrl-Shift
using xterm-style modifier coding.

14 years ago Throughout, revert ill-conceived replacement of hMainThread with
Corinna Vinschen [Mon, 21 Dec 2009 09:38:25 +0000 (09:38 +0000)]
Throughout, revert ill-conceived replacement of hMainThread with
GetCurrentThread/NtCurrentThread.
* dcrt0.cc (dll_crt0_0): Duplicate main thread handle to hMainThread
again.

14 years ago * fhandler_console.cc (__vt100_conv): Minor formatting change.
Corinna Vinschen [Sat, 19 Dec 2009 15:40:31 +0000 (15:40 +0000)]
* fhandler_console.cc (__vt100_conv): Minor formatting change.

14 years ago * fhandler_console.cc (write_console): Check for VT100
Corinna Vinschen [Sat, 19 Dec 2009 15:37:10 +0000 (15:37 +0000)]
* fhandler_console.cc (write_console): Check for VT100
graphics mode and transform wide characters in ASCII small
letter range to corresponding graphics.
(__vt100_conv): Table to transform small ASCII letters to line
drawing graphics for use in VT100 graphics mode.
(write_normal): Check for SO/SI control characters to
enable/disable VT100 graphics mode.
(base_chars): Enable SO/SI control characters for detection.
(write): Check for ESC ( 0 / ESC ( B escape sequences to
enable/disable VT100 graphics mode. Also detect ">" while
parsing ESC [ sequences to distinguish specific requests.
(char_command): Distinguish Secondary from Primary Device Attribute
request to report more details about cygwin console terminal version.
* fhandler.h (vt100_graphics_mode_active): New flag to indicate mode.
(saw_greater_than_sign): New parse flag for ESC [ > sequences.
(gotparen, gotrparen): New state values to parse ESC ( / ) sequences.

* fhandler_console.cc (read): Allow combined Alt-AltGr modifiers
to also produce an ESC prefix like a plain Alt modifier, e.g. to make
Alt-@ work on a keyboard where @ is AltGr-q.

14 years ago* signal.cc (nanosleep): Fix bug in previous patch.
Eric Blake [Sat, 19 Dec 2009 00:58:34 +0000 (00:58 +0000)]
* signal.cc (nanosleep): Fix bug in previous patch.

14 years ago Throughout, replace hMainProc with GetCurrentProcess/NtCurrentProcess
Corinna Vinschen [Fri, 18 Dec 2009 20:32:04 +0000 (20:32 +0000)]
Throughout, replace hMainProc with GetCurrentProcess/NtCurrentProcess
according to context.  Throughout, replace hMainThread with
GetCurrentThread/NtCurrentThread according to context.
* dcrt0.cc (dll_crt0_0): Drop duplication of GetCurrentProcess to
hMainProc.  Drop duplication of GetCurrentThread to hMainThread.
* dtable.cc (dtable::stdio_init): Remove useless comment.
* globals.cc (hMainProc): Remove.
(hMainThread): Remove.
* ntdll.h (NtCurrentProcess): Define.
(NtCurrentThread: Define.

14 years ago * fhandler.h (fhandler_registry::value_name): Convert to wchar_t*.
Corinna Vinschen [Fri, 18 Dec 2009 17:14:21 +0000 (17:14 +0000)]
* fhandler.h (fhandler_registry::value_name): Convert to wchar_t*.
* fhandler_registry.cc: Call UNICODE registry functions throughout
and convert to multibyte using current locale's charset.  Accommodate
throughout.
(must_encode): Take wchar_t.
(encode_regname): Convert from wchar_t *.
(decode_regname): Convert to wchar_t *.

14 years agoinclude/elf/
Ulrich Weigand [Fri, 18 Dec 2009 16:21:51 +0000 (16:21 +0000)]
include/elf/
* common.h (NT_S390_HIGH_GPRS): Define.

bfd/
* elf.c (elfcore_grok_s390_high_gprs): New function.
(elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes.
(elfcore_write_s390_high_gprs): New function.
(elfcore_write_register_note): Call it.

binutils/
* readelf.c (get_note_type): Handle NT_S390_HIGH_GPRS notes.

14 years ago * path.sgml (func-cygwin-conv-path): Clarify meaning of size parameter.
Corinna Vinschen [Fri, 18 Dec 2009 10:11:56 +0000 (10:11 +0000)]
* path.sgml (func-cygwin-conv-path): Clarify meaning of size parameter.
(func-cygwin-conv-path-list): Fix typo.
(func-cygwin-posix-path-list-p): Ditto.

14 years ago * config.sub, config.guess: Update from upstream sources.
Ben Elliston [Fri, 18 Dec 2009 03:39:58 +0000 (03:39 +0000)]
* config.sub, config.guess: Update from upstream sources.

14 years ago* ps.cc (main): Return 0 if pid found.
Christopher Faylor [Fri, 18 Dec 2009 03:34:59 +0000 (03:34 +0000)]
* ps.cc (main): Return 0 if pid found.

14 years ago2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Dec 2009 21:48:49 +0000 (21:48 +0000)]
2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * mn10300/Makefile.in: Add mkdir call to make installation
        directory when installing.

14 years ago2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Dec 2009 21:12:49 +0000 (21:12 +0000)]
2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * COPYING.NEWLIB: Update copyright date.
        * COPYING.LIBGLOSS: Ditto.

14 years ago2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Dec 2009 21:08:04 +0000 (21:08 +0000)]
2009-12-17  Jeff Johnston <jjohnstn@redhat.com>

        * libc/include/_syslist.h: Add _mkdir transform.

14 years ago2009-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Dec 2009 20:41:44 +0000 (20:41 +0000)]
2009-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * NEWS: Update with 1.18.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.18.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.18

14 years ago2008-12-17 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston [Thu, 17 Dec 2009 20:40:06 +0000 (20:40 +0000)]
2008-12-17  Jeff Johnston  <jjohnstn@redhat.com>

        * NEWS: Update with 1.18.0 info.
        * README: Ditto.
        * acinclude.m4: Change version number to 1.18.0.
        * aclocal.m4: Regenerated.
        * configure: Ditto.
        * doc/aclocal.m4: Ditto.
        * doc/configure: Ditto.
        * libc/*/aclocal.m4: Ditto.
        * libc/*/configure: Ditto.
        * libc/libc.texinfo: Ditto.
        * libm/*/aclocal.m4: Ditto.
        * libm/*/configure: Ditto.
        * libm/libm.texinfo: Ditto.
        * libc/sys/linux/shared.ld: Add VERS_1.18

14 years ago2009-12-17 Jerker Back <jerker.back@gmail.com>
Jeff Johnston [Thu, 17 Dec 2009 20:04:43 +0000 (20:04 +0000)]
2009-12-17  Jerker Back  <jerker.back@gmail.com>

        * libc/iconv/lib/local.h[!__GNUC__]: Add alternative version of
        ICONV_ZERO_MB_STATE_T macro.
        * libc/iconv/lib/ucsconv.c (ucs_based_conversion_get_state): Use
        temporary local variable nullstate to hold empty mbstate_t.

14 years ago2009-12-17 Jerker Back <jerker.back@gmail.com>
Jeff Johnston [Thu, 17 Dec 2009 19:43:43 +0000 (19:43 +0000)]
2009-12-17  Jerker Back  <jerker.back@gmail.com>

        * libc/include/_ansi.h: Add new _EXFNPTR macro for using with
        function pointer arguments.
        * libc/iconv/lib/conv.h: Use _EXFNPTR rather than _EXPARM macro.
        * libc/iconv/lib/ucsconv.h: Ditto.
        * libc/include/stdlib.h: Use new _EXFNPTR macro for function pointers.
        * libc/include/sys/reent.h: Ditto.
        * libc/include/sys/unistd.h: Ditto.
        * libc/search/bsearch.c: Ditto.
        * libc/stdio/fseek.c: Ditto.
        * libc/stdio64/fseeko64.c: Ditto.
        * libc/stdlib/atexit.c: Ditto.
        * libc/stdlib/on_exit.c: Ditto.

14 years ago2009-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 17 Dec 2009 19:26:38 +0000 (19:26 +0000)]
2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>

        * libc/include/machine/ieeefp.h: Rework __IEEE_*_ENDIAN handling.
        * libc/machine/arm/machine/endian.h: Remove (Conflicts with
        libc/include/machine/endian.h)

14 years ago2009-12-17 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 17 Dec 2009 19:24:22 +0000 (19:24 +0000)]
2009-12-17  Ralf Corsépius <ralf.corsepius@rtems.org>

        * libc/include/machine/setjmp.h: Set up _JBLEN #ifdef __m68k__.

14 years ago2009-12-17 Ralf Corsepius <ralf.corsepius@rtems.org>
Jeff Johnston [Thu, 17 Dec 2009 19:22:23 +0000 (19:22 +0000)]
2009-12-17  Ralf Corsepius <ralf.corsepius@rtems.org>

        * libc/include/pthread.h: Add pthread_atfork, pthread_rwlock_unlock
        * libc/include/sys/stat.h: Use struct timespec st_*tim,
        blksize_t st_blksize, blkcnt_t st_blocks.
        Add st_*time compatibility macros.

14 years ago * syscalls.cc (try_to_bin): Handle remote shares as well. Just rename
Corinna Vinschen [Thu, 17 Dec 2009 18:33:05 +0000 (18:33 +0000)]
* syscalls.cc (try_to_bin): Handle remote shares as well.  Just rename
files in this case, instead of moving them to the recycler.  Create
even more unique filename.  Add comment to explain filename.
(unlink_nt): Remove code returning with EBUSY on remote shares.
Set bin_stat to move_to_bin except on NFS.  Add comment to explain.

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