b8a35083c6Improve clock_gettime and utimensat resolution.
Eric Blake
2009-10-13 02:26:33 +0000
2fc007681e* external.cc (cygwin_internal): Return 0 in CW_SET_DOS_FILE_WARNING and CW_SETERRNO cases.
Corinna Vinschen
2009-10-12 19:26:08 +0000
9e278ffd2c* kill.cc (main): Skip to PID loop on invalid option to handle negative pids there.
Corinna Vinschen
2009-10-12 16:01:44 +0000
d358c9e9b0* fhandler_disk_file.cc (fhandler_disk_file::link): Only append .lnk if the original device had one, too. Add comment.
Corinna Vinschen
2009-10-12 11:57:29 +0000
2072888e662009-10-09 Dave Korn <dave.korn@artimi.com>
Jeff Johnston
2009-10-09 18:43:12 +0000
84552b989dmerge from gcc
DJ Delorie
2009-10-09 16:17:35 +0000
220f363d20* pathnames.sgml (pathnames-specialchars): Add control chars to the list. Explain backslash exception.
Corinna Vinschen
2009-10-09 11:19:18 +0000
9fa1c6420b* path.cc (tfx_chars): Convert all ASCII control characters except ASCII NUL as well. Change layout to make the conversions more clear. Add comment.
Corinna Vinschen
2009-10-09 11:17:17 +0000
ec4e5025e9* libc/locale/locale.c (DEFAULT_LOCALE): New define. (__default_locale): New global variable set to the default locale. (__get_locale_env): Return __default_locale rather than fixed "C".
Corinna Vinschen
2009-10-09 08:25:28 +0000
a3a62ae7a52009-10-08 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2009-10-08 16:44:10 +0000
b1da4d82772009-10-08 Jie Zhang <jie.zhang@analog.com>
Jeff Johnston
2009-10-08 16:35:34 +0000
85191fc5aa2009-10-08 Eric Blake <ebb9@byu.net>
Jeff Johnston
2009-10-08 16:26:28 +0000
5391a40c89* exceptions.cc (_cygtls::signal_exit): There's no need to set signal_arrived if we're exiting.
Christopher Faylor
2009-10-08 15:56:14 +0000
80636211bc* fhandler_disk_file.cc (utimens_fs): Plug fd leak on EINVAL.
Eric Blake
2009-10-08 11:13:45 +0000
8bd7bd3bc0* libc/locale/nl_langinfo.c (nl_langinfo): Just return current locale charset on Cygwin.
Corinna Vinschen
2009-10-07 16:45:23 +0000
dc4e4aabbaSupport pseudo-reloc version 2
Charles Wilson
2009-10-07 15:47:38 +0000
dfbf36f8db* syscalls.cc (seteuid32): Call set_cygwin_privileges on primary token as well.
Corinna Vinschen
2009-10-07 08:20:49 +0000
b4311a9067* fhandler.h (fhandler_pty_master::tcgetpgrp): Declare. * fhandler_termios.cc (fhandler_termios::tcgetpgrp): Only return valid pgid if tty is controlling tty. Set errno to ENOTTY and return -1 otherwise. (fhandler_pty_master::tcgetpgrp): New function. Return 0 for master side of pty if it's not the controlling tty of the process.
Corinna Vinschen
2009-10-07 07:52:30 +0000
bd45d6fa76Sync with gcc repository.
Ian Lance Taylor
2009-10-07 05:57:49 +0000
84e91636f7merge from gcc
DJ Delorie
2009-10-07 02:57:27 +0000
c8ee587a8eAdd cygwin wrapper for ExitProcess and TerminateProcess.
Charles Wilson
2009-10-06 21:51:17 +0000
960bdc0e74Merge from gcc repository.
Ian Lance Taylor
2009-10-06 20:14:06 +0000
a12518a37c* exceptions.cc: Move global variable sigExeced... * globals.cc: here. * pinfo.cc (pinfo::maybe_set_exit_code_from_windows): Remove now unneeded declaration.
Christopher Faylor
2009-10-06 03:39:38 +0000
3772467948* Makefile.in (CFLAGS): Add -mno-use-libstdc-wrappers.
Dave Korn
2009-10-04 17:48:05 +0000
9c47bbb6e9merge from gcc
DJ Delorie
2009-10-02 18:22:51 +0000
0ca6c6b802* dcrt0.cc (dll_crt0_1): Drop calls to setlocale/_setlocale_r. Just call initial_setlocale from here. * syscalls.cc (initial_setlocale): Set internal charset and revert application locale to "C". (setlocale): Don't set Cygwin's internal charset here.
Corinna Vinschen
2009-10-02 14:58:10 +0000
a37e07482c* mkpasswd.c: Properly define __progname as __declspec(dllimport). * mkgroup.c: Ditto.
Christopher Faylor
2009-10-02 13:49:39 +0000
45162575d2* setup2.sgml (setup-locale-ov): Fix typo in C+charset example. Rephrase how the locale environment variables are evaluated.
Corinna Vinschen
2009-10-02 12:35:52 +0000
284c5ea0a5* dcrt0.cc (dll_crt0_1): Move cxx_malloc reset kluge from here. (check_sanity_and_sync): to here. * path.cc (has_dot_last_component): Rewrite to detect some corner cases that were previously uncaught.
Christopher Faylor
2009-10-02 06:04:57 +0000
182f0f0f8cgas/ * config/tc-ppc.c (md_show_usage): Rename "ppca2" to "a2". * doc/c-ppc.texi (PowerPC-Opts): Likewise.
Peter Bergner
2009-10-01 19:24:48 +0000
ffca4d278e* new-features.sgml (ov-new1.7-file): Ctrl-X, not Ctrl-N. * pathnames.sgml (pathnames-unusual): Ditto. * setup2.sgml (setup-locale-ov): Change description according to latest changes. (setup-locale-how): Rewrite. (setup-locale-console): Enable section again. Change to reflect recent changes. (setup-locale-problems): Change to reflect recent changes.
Corinna Vinschen
2009-09-30 09:45:01 +0000
4180b64df4* fhandler_console.cc (beep): Move up to avoid forward declaration. (fhandler_console::read): Just beep on characters invalid in current charset. Add comment.
Corinna Vinschen
2009-09-30 09:23:45 +0000
1c0909882c* syscalls.cc (rename): Fix regression in rename("dir","d/").
Eric Blake
2009-09-30 02:11:05 +0000
e634d387542009-09-29 Paolo Bonzini <bonzini@gnu.org>
Paolo Bonzini
2009-09-29 21:31:07 +0000
e97ad66a84Make MinGW printf() "%p" format compatible with MSVCRT scanf().
Keith Marshall
2009-09-29 20:43:50 +0000
50e4e69c42* libc/locale/locale.c (loadlocale): Allow "C." same as "C-" as locale prefix. Add some words to documentation.
Corinna Vinschen
2009-09-29 19:12:28 +0000
99dbad651c* libc/stdlib/sb_charsets.c: Throughout, translate undefined characters to their corresponding Windows Unicode value.
Corinna Vinschen
2009-09-29 19:11:01 +0000
c38ed7c6972009-09-28 Michael Eager <eager@eagercon.com>
Jeff Johnston
2009-09-28 16:43:57 +0000
6c249577fb2009-09-28 Michael Eager <eager@eagercon.com>
Jeff Johnston
2009-09-28 16:42:21 +0000
587b75f7bd* fhandler.h (class dev_console): Constify charset parameter of str_to_con. * fhandler_console.cc (dev_console::con_to_str): Simplify. Always default to the current internal locale. (dev_console::get_console_cp): Always use codepage 437 for alternate charset. (dev_console::str_to_con): Constify charset parameter. (fhandler_console::write_normal): Always use codepage 437 for alternate charset. Otherwise always default to the current internal locale. Replace ASCII SO with ASCII CAN. * strfuncs.cc: Tweka comments according to below changes. (sys_cp_wcstombs): Constify charset parameter. Convert all wchar_t values in the Unicode private use area U+F0xx to the singlebyte counterpart. Drop special handling creating ASCII SO sequence from U+DCxx value. Rearrange for performance. Replace ASCII SO with ASCII CAN. (sys_cp_mbstowcs): Constify charset parameter. Replace ASCII SO with ASCII CAN. Drop special case for U+DCxx ASCII SO sequences. Always create a replacement from the Unicode private use area U+F0xx for invalid byte values in a multibyte sequence. Do the same for wchar_t values from the U+F0xx range to make them roundtrip safe. * wchar.h (sys_cp_wcstombs): Constify charset parameter. (sys_cp_mbstowcs): Ditto.
Corinna Vinschen
2009-09-28 12:10:32 +0000
d856640e1c* cygheap.cc (cygheap_init): Default locale.charset to "UTF-8". * dcrt0.cc (dll_crt0_1): Call setlocale (LC_CTYPE, "") here, just before resetting application locale to "C". * environ.cc (environ_init): Drop code setting locale here. * syscalls.cc (check_codepage): Break out check for required codepage from internal_setlocale. (internal_setlocale): Just convert CWD and $PATH from old charset to new charset and set internal charset. (setlocale): Change accordingly. Don't require LC_ALL or LC_CTYPE to store old locale value. Always call internal_setlocale if charset changed due to locale environment changes.
Corinna Vinschen
2009-09-28 10:43:49 +0000
a58d484bcf* libc/locale/locale.c (lc_ctype_charset): Set to "UTF-8" on Cygwin. (lc_message_charset): Ditto. (loadlocale): Set charset of the "C" locale to "UTF-8" on Cygwin. * libc/stdlib/mbtowc_r.c (__mbtowc): Default to __utf8_mbtowc on Cygwin. * libc/stdlib/wctomb_r.c (__wctomb): Default to __utf8_wctomb on Cygwin.
Corinna Vinschen
2009-09-27 12:21:16 +0000
599d462dfa* posix_ipc.cc (mq_open): Avoid closing the same descriptor twice in case of errors. (sem_open): Ditto.
Corinna Vinschen
2009-09-24 09:25:35 +0000
e664429d77* strfuncs.cc (sys_cp_wcstombs): Convert lone surrogate pair second halves to unambiguous ASCII SO sequence. When converting chars invalid in current codepage to ASCII SO sequence, make sure to check for surrogate pair second half only if ct least one wide characters is left. Decrement nwc if valid second half has been converted. (sys_cp_mbstowcs): Improve ASCII SO handling. Never break from loop if invalid character has been found. Recognize ASCII SO sequence representing originally invalid mulitbyte char converted into a lone surrogate pair second half. Convert accordingly.
Corinna Vinschen
2009-09-23 11:31:00 +0000
70ecec052a* config.sub, config.guess: Update from upstream sources.
Nick Clifton
2009-09-23 09:51:31 +0000
515575eaaemerge from gcc
DJ Delorie
2009-09-22 21:52:47 +0000
2ad8d17a162009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston
2009-09-22 21:49:20 +0000
bdb08ed44f2009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston
2009-09-22 21:24:55 +0000
c3f3d59e432009-09-22 Ralf Corsépius <ralf.corsepius@rtems.org>
Jeff Johnston
2009-09-22 21:23:13 +0000
8980b9ad03Error out if building separately but srcdir has build remnants.
Ralf Wildenhues
2009-09-22 18:00:40 +0000
5e8d7527af* autoload.cc (WSARecv): Define. * fhandler_socket.cc (fhandler_socket::recv_internal): Call WSARecv instead of WSARecvFrom if no name parameter is given. Explain why.
Corinna Vinschen
2009-09-22 14:27:57 +0000
74a67d01a5Make *at functions more like Linux.
Eric Blake
2009-09-22 12:13:53 +0000
abe6b5a3e2* strfuncs.cc (sys_cp_mbstowcs): Reset shift state after handling invalid multibyte sequence.
Corinna Vinschen
2009-09-22 09:44:32 +0000
4401b147bb* path.cc (symlink_worker): Rework error handling to generate Linux compatible errno in case of trailing slash in newpath.
Corinna Vinschen
2009-09-22 09:24:30 +0000
29bca9bb0cMatch dup2 and fcntl error values to POSIX.
Eric Blake
2009-09-22 04:09:03 +0000
ee42ccd3a2* cygheap.h (cwdstuff::get_posix): Convert to const inline method just returning pointer to posix path. (cwdstuff::reset_posix): Convert to non-inline method taking a wchar_t pointer. * path.cc (cwdstuff::set): Revert change from 2009-05-13. Set posix to valid incoming path again. (cwdstuff::reset_posix): New implementation setting posix path from incoming wchar_t path. Explain usage. (cwdstuff::get_posix): Drop implementation. (cwdstuff::get): Drop special case to handle empty posix path. * syscalls.cc (internal_setlocale): Store old posix cwd as wide char path. Restore posix cwd using new charset. Explain why.
Corinna Vinschen
2009-09-21 19:29:16 +0000
92c4330f5b* dcrt0.cc (dll_crt0_1): Add another hack to REALLY make sure that cxx_malloc is always set to the cygwin version.
Christopher Faylor
2009-09-21 02:32:06 +0000
adfbdcdb07* external.cc (cygwin_internal): Add hack to always reset cxx_malloc to proper value. * lib/_cygwin_crt0_common.cc (_cygwin_crt0_common): Relocate wayward comment.
Christopher Faylor
2009-09-21 02:19:31 +0000
50a8741474* exceptions.cc (sigpacket::process): Explicitly set thread-specific handler function to zero to avoid transferring to incorrect location. (_cygtls::call_signal_handler): Don't transfer to handler if there is no handler to transfer to.
Christopher Faylor
2009-09-19 15:34:19 +0000
4945cb2af0* libc/include/sys/unistd.h: Declare getpagesize as returning POSIX-mandated int. * libc/sys/linux/sys/unistd.h: Ditto.
Christopher Faylor
2009-09-19 02:30:51 +0000
7b9f3ce02c* exceptions.cc (sigpacket::process): Give sigwait() processing precedence even when a handler is present. * syscalls.cc (getpagesize): Change return to 'int'.
Christopher Faylor
2009-09-18 21:27:02 +0000
a7f0112577* ntea.c (write_ea): Don't abort if not-samba.
Christopher Faylor
2009-09-16 16:23:51 +0000
4834826e922009-09-16 Mike Frysinger <michael.frysinger@analog.com>
Jeff Johnston
2009-09-16 16:08:27 +0000