b3cbb06c9d* spawn.cc (find_exec): Enable finding paths in backslash notation, especially for the exec[vl]p functions.
Corinna Vinschen
2010-03-29 17:15:51 +0000
3f4a0c963a* new-features.sgml (ov-new1.7.3): New section.
Corinna Vinschen
2010-03-29 15:10:09 +0000
ef7fc14537* include/cygwin/version.h: Bump DLL minor version number to 3.
Corinna Vinschen
2010-03-29 15:06:09 +0000
ce3d89938b* fhandler.cc (fhandler_base::fstat): Keep st_ctime and st_birthtime fixed to 2006-12-01 00:00 UTC.
Corinna Vinschen
2010-03-29 15:02:50 +0000
7a2df116fcchange wording
Christopher Faylor
2010-03-28 18:36:02 +0000
e2402ed859* fhandler.cc (fhandler_base::fstat): Set st_mtime time to current time.
Christopher Faylor
2010-03-28 17:49:35 +0000
c019a66c32* globals.cc (exit_status): Add new ES_EXIT_STARTING enum. * dcrt0.cc (cygwin_exit): Set exit_state to ES_EXIT_STARTING prior to calling real exit. * dll_init.cc (dll_list::detach): Remove dll from linked list and call destructors even if exiting. Don't call __cxa_finalize in exiting case.
Christopher Faylor
2010-03-28 17:27:52 +0000
68b0fa820d* nlsfuncs.cc (__set_charset_from_locale): Set default charset for locales defaulting to codepage 936 to GB2312.
Corinna Vinschen
2010-03-27 21:07:17 +0000
eca2df4f01* libc/locale/locale.c (loadlocale): Optimize "EUC" charset check. Cygwin only: Allow GB2312 and EUC-CN as alternative codeset names for GBK. Add to documentation. * libc/locale/nl_langinfo.c (nl_langinfo): On Cygwin, translate EUCCN to GB2312.
Corinna Vinschen
2010-03-27 21:04:49 +0000
536ad25322* locale.cc (add_locale_alias_locales): Always use loc_num at function start to avoid confusing bsearch.
Corinna Vinschen
2010-03-23 21:26:03 +0000
1d4c87a15d* locale.cc (print_locale_with_codeset): Drop redundant name parameter. Simplify creating locale string. Add "@" in case of a modifier. (print_locale): Drop name parameter in calls to print_locale_with_codeset.
Corinna Vinschen
2010-03-23 21:01:01 +0000
6315af0f80* configure.ac (tic6x-*-*): New case. * configure: Regenerate.
Joseph Myers
2010-03-23 16:05:34 +0000
105d67cb7eMerge from gcc: 2010-03-19 Jack Howarth <howarth@bromo.med.uc.edu> PR ada/42554 * configure.ac: Only pass -c to ranlib for darwin9 and earlier. * configure: Regenerate.
Joseph Myers
2010-03-23 14:30:59 +0000
8afe7566a0* config.sub: Update to version 2010-03-22. * config.guess: Update to version 2009-12-30.
Joseph Myers
2010-03-23 14:27:19 +0000
65b4b495c6* fhandler_socket.cc (fhandler_socket::evaluate_events): Make erase const in parameter list. (fhandler_socket::wait_for_events): Take a DWORD flags value instead of just a bool. Call evaluate_events with erase flag according to MSG_PEEK value in flags. Replace check for dontwait with check for MSG_DONTWAIT in flags. (fhandler_socket::connect): Call wait_for_events with 0 flags value. (fhandler_socket::accept4): Ditto. (fhandler_socket::recv_internal): Save flags in wait_flags. Drop dontwait variable. Call wait_for_events with wait_flags. (fhandler_socket::send_internal): Save MSG_DONTWAIT flag in wait_flags and call wait_for_events with wait_flags as argument. Drop dontwait variable. * fhandler.h (class fhandler_socket): Change second parameter in declaration of wait_for_events to const DWORD.
Corinna Vinschen
2010-03-22 10:47:53 +0000
60698cf37a* shared.cc (init_installation_root): Change to make sure that scope of the lock lasts the entire function.
Christopher Faylor
2010-03-18 19:10:11 +0000
cb03d2f771Move ChangeLog entries to proper place.
H.J. Lu
2010-03-18 14:44:46 +0000
5e74a46f2f* libc/include/sys/features.h: Allow for _XOPEN_SOURCE to have an empty definition. Also add support for values of 500 or less.
Corinna Vinschen
2010-03-17 17:13:00 +0000
cef5dfd75a* shared_info.h (user_info): Add dll_crt0_1 as a friend. (user_info::version): Make LONG to accommodate spinlock use. (user_info::create): New static function renamed from user_info_create. (user_info::initialize): New private function renamed from user_info_initialize. (SHARED_VERSION): Delete. (SHARED_VERSION_MAGIC): Ditto. (USER_VERSION_MAGIC): Ditto. (SHARED_INFO_CB): Ditto. (USER_VERSION): Ditto. (USER_VERSION_MAGIC): Ditto. (CURR_SHARED_MAGIC): Update. (CURR_USER_MAGIC): Ditto. (shared_info::version): Make LONG to accommodate spinlock use. (shared_info::create): New static function mirroring user_info::create. (dll_crt0_1): Accommodate change to user_info::initialize. * spinlock.h (spinlock::setto): New variable member. (spinlock::done): New function. (spinlock::spinlock): Generalize to allow arbitrary values and timeouts. Call done() when lock is not needed. * ntdll.h: Make multiple-inclusion safe. (NtQuerySystemTime): Declare. * shared.cc (installation_root_inited): Rename from shared_mem_inited. (init_installation_root): Make inline. Use a spinlock to ensure that this is initialized only once per session. (user_info::initialize): Rename from user_shared_initialize. Protect with spinlock on sversion and remove other spinlock-like things. Remove reference to user_shared since it is now implicit. Refer to spinlock version of multiple_cygwin_problem to ensure that any spinlock is released. (user_info::create): Rename from user_shared_create. Accommodate change from user_shared_initialize to user_info::initialize. (shared_info::create): New inline function. (shared_info::initialize): Protect with spinlock on sversion. Move heap_init back under specific control of shared_info spinlock. Remove reference to SHARED_INFO_CB and just use sizeof(*this). (memory_init): Move all locking into respective functions where it is needed. Accommodate name changes. Remove call to heap_init(). * syscalls.cc (seteuid32): Accommodate name change to user_info::create(). * mount.cc (mount_info::create_root_entry): Report on errors from add_item since they should be nonexistent. (mount_info::init): Don't initialize nmounts. It should already be zero. Give more verbose error when root_idx < 0. Implicitly use this pointer rather than explicitly referencing mount_table->. (mount_info::add_item): Minor whitespace fix.
Christopher Faylor
2010-03-15 21:29:15 +0000
654e623ce0* sigproc.cc (no_signals_available): Get sense of the test right for previous botched change.
Christopher Faylor
2010-03-15 15:46:46 +0000
d1ef5f33e6* sigproc.cc (no_signals_available): Don't try to send a signal if still in cygwin startup code.
Christopher Faylor
2010-03-15 15:31:32 +0000
90db0fb024Merge from gcc: 2010-01-11 Richard Guenther <rguenther@suse.de> PR lto/41569 * Makefile.def (all-lto-plugin): Depend on all-gcc. * Makefile.in: Regenerated.
Joseph Myers
2010-03-14 16:00:37 +0000
f8af64be87* spinlock.h: New file. (spinlock): New class. * shared.cc: Include spinlock.h. (memory_init): Use new spinlock methods rather than roll-your-own. Time out after ten seconds if shared_mem_inited is not initialized. * sync.h: Update copyright. Remove vanity attribution. * sigproc.cc (sigproc_terminate): Avoid attempts to kill the signal thread while we're still initializing or suffer a deadlock.
Christopher Faylor
2010-03-13 19:34:35 +0000
084ea5108eThroughout change all calls of low_priority_sleep (0) to yield (). * miscfuncs.cc (yield): Rename from low_priority_sleep. Remove all of the logic which called Sleep() and just use SwitchToThread. * miscfuncs.h (yield): Rename from low_priority_sleep. (SLEEP_0_STAY_LOW): Delete unused define. * shared.cc (memory_init): Move heap_init() call directly after shared memory initialization to more closely mimic long-standing program flow. * tty.cc (tty_list::terminate): Replace call to low_priority_sleep with Sleep.
Christopher Faylor
2010-03-12 23:13:48 +0000
36960dec37* effectively.sgml (using-shortcuts): Match chapter with reality.
Corinna Vinschen
2010-03-12 10:33:08 +0000
bd3b3783f8* shared_info.h (open_shared): Create function wrapper for common use case. (open_shared): Change fifth argument to a pointer rather than a reference. * fhandler_console.cc (fhandler_console::get_tty_stuff): Eliminate use of dummy variable and call open_shared with constant. * fhandler_process.cc (format_process_mounts): Ditto. * pinfo.cc (pinfo::init): Pass pointer to shloc. * shared.cc (shared_mem_inited): New variable. (open_shared): Crate function wrapper for common use case. (open_shared): Accommodate change to fifth argument to a pointer. (shared_info::initialize): Remove spinlock test. Simplify function. Move get_session_parent_dir call back here. (memory_init): Protect global shared settings with shared_mem_inited spinlock. Move get_session_parent_dir call to shared_info::initialize.
Christopher Faylor
2010-03-09 21:26:55 +0000
fab7d5988a2010-03-09 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-03-09 20:38:18 +0000
e8190d8fbf* shared.cc (inst_root_inited): Delete. * (shared_info::initialize): Reorganize. Move call to init_installation_root here under spinlock control. Move unneeded non-shared_info initialization out of this function. (memory_init): Remove call to init_installation_root. Call heap_init and get_session_parent_dir here.
Christopher Faylor
2010-03-09 16:07:15 +0000
23a6adc2c32010-03-08 Craig Howland <howland@LGSInnovations.com>
Jeff Johnston
2010-03-08 17:16:37 +0000
1f440e4dbe2010-03-06 Chris Sutcliffe <ir0nh34d@users.sourceforge.net>
Chris Sutcliffe
2010-03-07 03:10:38 +0000
a1891602202010-03-02 Daniel Atallah <datallah@users.sourceforge.net>
Chris Sutcliffe
2010-03-07 03:08:35 +0000
d909dd6c42* setup2.sgml (setup-env): Add cross reference to using-cygwinenv. Change description for locale environment variables to comply with changes in 1.7.2.
Corinna Vinschen
2010-03-05 15:44:03 +0000
b73e65bb44* libm/math/ef_sqrt.c: Delete unused variable sign. * libc/stdlib/getenv.c: Delete "char *_findenv_r ();", as is not a proper prototype, and is properly prototyped in stdlib.h, anyway. * libc/stdlib/getenv_r.c: Ditto. * libc/search/hash.c: Add _DEFUN to __hash_open() declaration; add #define __DBINTERFACE_PRIVATE to activate prototypes from db_local.h. * libc/search/db_local.h: Correct __hash_open() prototype. * libc/sys/linux/cmath/math_private.h: Eliminate compiler warnings: Remove #define INFINITY (redefines from math.h); remove #define __isnanf and #define __isinff isinff.
Corinna Vinschen
2010-03-05 08:55:16 +0000
8e75995c7f* syscalls.cc (nt_path_has_executable_suffix): Change storage class of blessed_executable_suffixes to static. (rename): Revert meaning of old_explicit_suffix. Change the rules for appending a .exe suffix and (yikes!) document them.
Corinna Vinschen
2010-03-04 16:20:37 +0000
a9fd742428* cygwin.din: Export __xdr functions. * include/cygwin/version.h: Bump version. * posix.sgml: Add a few more XDR functions to list of implemented Solaris functions.
Corinna Vinschen
2010-03-04 09:37:52 +0000
3d7c4998acAdd eXtensible Data Record (XDR) support * configure.host: Build libc/xdr only on cygwin. * Makefile.am: Install xdr headers. * libc/configure.in: Support new libc/xdr subdirectory. * libc/Makefile.am: Support new libc/xdr subdirectory. * libc/include/rpc/types.h: New. * libc/include/rpc/xdr.h: New. * libc/xdr/README: New. * libc/xdr/Makefile.am: New. * libc/xdr/dummy.c: New. * libc/xdr/xdr.c: New. * libc/xdr/xdr_array.c: New. * libc/xdr/xdr_float.c: New. * libc/xdr/xdr_float_vax.c: New. * libc/xdr/xdr_mem.c: New. * libc/xdr/xdr_private.c: New. * libc/xdr/xdr_private.h: New. * libc/xdr/xdr_rec.c: New. * libc/xdr/xdr_reference.c: New. * libc/xdr/xdr_sizeof.c: New. * libc/xdr/xdr_stdio.c: New.
Corinna Vinschen
2010-03-02 12:05:18 +0000
cf15694586* cygtls.h: Replace /*gentls_offsets*/ at end.
Christopher Faylor
2010-03-02 00:49:15 +0000
a9b112ec16* exception.h: Fix copyright.
Christopher Faylor
2010-03-01 06:39:47 +0000
a0f5a8e549Fix/delete inaccurate comments.
Christopher Faylor
2010-03-01 06:38:58 +0000
98a97ac6cfUpdate some copyrights. * cygtls.cc (_cygtls::call): Invoke new exception protection here. (_cygtls::init_thread): Remove conditionalized exception handler setup. (exception_list): Delete declaration. (_cygtls::init_exception_handler): Delete obsolete function. * cygtls.h: Remove (now) unneeded include. (_cygtls): Make this a real C++ class. (_cygtls::handle_exceptions): Remove. (_cygtls::init_exception_handler): Remove. (_cygtls::call2): Make private. (myfault::faulted): Remove unneeded parentheses. * dcrt0.cc (dll_crt0_1): Remove exception handler setup. * dlfcn.cc (dlopen): Ditto. (dlclose): Ditto. * dll_init.cc (dll_dllcrt0_1): Ditto. (dll_list::detach): Use new exception handler protection. * exceptions.cc (dump_exception): Rename to prevent confusion with new class. (exception::handle): Rename from _cygtls::handle_exceptions. Accommodate new exception class. Accommodate rename to dump_exception. * tlsoffsets.h: Regenerate.
Christopher Faylor
2010-02-28 15:54:25 +0000
d5d5bf4dd5* cygtls.h (_cygtls::init_exception_handler): Eliminate argument. (_cygtls::andreas): Convert to a pointer. (san): Convert to a real class with methods. Use a linked list to keep track of previous handlers on the "stack". (myfault): Rewrite to use new san class rather than calling directly into _cygtls. * cygtls.cc (_cygtls::init_exception_handler): Just assume that we're always using the standard exception handler. (_cygtls::init_thread): Reflect loss of argument to init_exception_handler. * dcrt0.cc (dll_crt0_1): Ditto. * dfcn.cc (dlopen): Ditto. (dlclose): Reset the exception handler after FreeLibrary. * dll_init.cc (dll_list::detach): Make sure that the exception handler is initialized before calling destructors. * exceptions.cc (_cygtls::handle_exceptions): Accommodate new andreas pointer. * thread.cc (verifyable_object_isvalid): Pass objectptr to faulted for explicit NULL pointer checking. * tlsoffsets.h: Regenerate.
Christopher Faylor
2010-02-26 21:36:31 +0000
b6336c95b4* mkimport: cd away from temp directory or Windows will have problems removing the directory.
Christopher Faylor
2010-02-26 19:37:43 +0000
75bd77d246* libc/strptime.cc: Implement support for era, alt_digits and POSIX padding and width modifiers. (era_info_t): New type. (free_era_info): New static function to free era_info_t storage. (get_era_info): New static function to create era_info_t storage from LC_TIME era information. (alt_digits_t): New type. (get_alt_digits): New static function to create alt_digits_t storage from LC_TIME alt_digits information. (free_alt_digits): New static function to free alt_digits_t storage. (find_alt_digits): New static function to scan input for alternative digits and return them, if any. Return NULL otherwise. (__strptime): New static function taking all code from strptime. Implement handling for E, O, +, 0, and width modifiers per POSIX-1.2008. (strptime): Convert into wrapper function to provide era_info and alt_digits pointers and call __strptime. (conv_num): Take additional alt_digits_t parameter and if it's not NULL, call find_alt_digits to convert.
Corinna Vinschen
2010-02-26 17:53:52 +0000
79ca6b6fd2* libm/common/s_ilogb.c: Fix typo in comments that causes doc generation to fail.
Corinna Vinschen
2010-02-26 09:44:25 +0000
be7f7a7503* libc/time/strftime.c: Add support for era and alt_digits data from LC_TIME locale category. Conditionalize using _WANT_C99_TIME_FORMATS flag. (STRTOUL): Define differently for building strftime or wcsftime. (STRCPY): Ditto. (STRCHR): Ditto. (STRLEN): Ditto. (CHECK_LENGTH): Define to simplify code. (era_info_t): New type to store era info. (get_era_info): New function to fetch era info matching incoming struct tm. (free_era_info): New function to free era info. (alt_digits_t): New type to store alternative digits. (get_alt_digits): New function to convert alt_digits string into alt_digits_t structure. (free_alt_digits): New function to free alt_digits info. (conv_to_alt_digits): New function to convert unsigned value into alternative digits. (strftime): Conditionalize on _WANT_C99_TIME_FORMATS. If _WANT_C99_TIME_FORMATS is defined, define as just a wrapper function providing era_info and alt_digits pointers and call ... (__strftime): Rename from strftime and make static if _WANT_C99_TIME_FORMATS is defined. Add parameters for era_info and alt_digits pointers. Handle conversion modifiers according to POSIX-1.2008. Redefine %F and %Y according to POSIX. Add default case to allow to bail out on invalid conversion specifiers. * libc/include/sys/config.h: Move Cygwin build flags to Cygwin's config.h.
Corinna Vinschen
2010-02-26 09:41:44 +0000
830686ec0b* libc/locale/locale.c: Throughout, extensively comment on the reason for using __CYGWIN__. (lconv): Remove _CONST entirely. (loadlocale): Guard calls to function loading locale-specific category data with __HAVE_LOCALE_INFO__ rather than __CYGWIN__. * libc/sys/config.h (__HAVE_LOCALE_INFO__): Define for Cygwin.
Corinna Vinschen
2010-02-25 16:10:42 +0000
39f7d1762b* config/tc-mips.c (mips_fix_loongson2f, mips_fix_loongson2f_nop, mips_fix_loongson2f_jump): New variables. (md_longopts): Add New options -mfix-loongson2f-nop/jump, -mno-fix-loongson2f-nop/jump. (md_parse_option): Initialize variables via above options. (options): New enums for the above options. (md_begin): Initialize nop_insn from LOONGSON2F_NOP_INSN. (fix_loongson2f, fix_loongson2f_nop, fix_loongson2f_jump): New functions. (append_insn): call fix_loongson2f(). (mips_handle_align): Replace the implicit nops. * config/tc-mips.h (MAX_MEM_FOR_RS_ALIGN_CODE): Modified for the new mips_handle_align(). * doc/c-mips.texi: Document the new options.
Nick Clifton
2010-02-25 11:15:48 +0000
9035cfbd122010-02-24 Charles Wilson <...>
Jeff Johnston
2010-02-24 21:00:08 +0000
ba7b2147662010-02-24 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-02-24 19:58:17 +0000
be71be8e18* sec_auth.cc (get_full_privileged_inheritable_token): Fix dumb typo when checking linked token for being a primary token.
Corinna Vinschen
2010-02-24 17:30:18 +0000
c6a6b5a3ac* dlfcn.cc (dlopen): Make sure exception handler is really loaded after dynamic load.
Christopher Faylor
2010-02-24 08:03:44 +0000
fd4a56afe8* cygtls.cc (_cygtls::init_exception_handler): Force installation of our exception handler to always be at the beginning.
Christopher Faylor
2010-02-24 00:03:42 +0000
84f66e46b92010-02-23 Jeff Johnston <jjohnstn@redhat.com>
Jeff Johnston
2010-02-23 23:13:20 +0000
a2036998b1* locale.cc (printlocale): Remove. (loc_t): New type to keep locale information for printing. (print_codeset): New function to print codeset as on Linux. (print_locale_with_codeset): New function to print single locale. Print verbose style as the Linux locale(1) tool. (print_locale): New function to print single locale plus its UTF-8 variation, if available. (compare_locales): New helper function for bsearch and qsort on loc_t. (add_locale): New function to store locale in loc_t array. (add_locale_alias_locales): New function to store locales from locale.alias file in loc_t. (print_all_locales): Call add_locale instead of printlocale. Call add_locale_alias_locales, sort locales alphabetically and print them.
Corinna Vinschen
2010-02-23 14:07:08 +0000
ed64b7583cPR 11297: Add support for 8-bit relocations to the AVR toolchain.
Nick Clifton
2010-02-23 11:38:36 +0000
7414c24a77* thread.cc (pthread_mutex::unlock): Don't attempt to unlock if there is an error.
Christopher Faylor
2010-02-23 07:12:38 +0000
dbf41aeeff* strace.cc (mnemonic_table): Add "special" mask option. (usage): Document it. * utils.sgml: Ditto.
Christopher Faylor
2010-02-22 20:39:18 +0000
478ea460eb* include/sys/strace.h: Define _STRACE_SPECIAL. (strace_printf_wrap): Fix NOSTRACE definitions. (strace_printf_wrap1): Fix NOSTRACE definitions. (special_printf): Define. * thread.cc: Perform minor syntax fix in a comment. Rename "is_good_initialzer*" to "is_initializer*" throughout. Use pthread_printf rather than debug_printf throughout. Add extra pthread_printf debugging throughout. (pthread_mutex::_new_mutex): New constant value. (pthread_mutex::_unlocked_mutex): Ditto. (pthread_mutex::_destroyed_mutex): Ditto. (pthread_mutex::no_owner): Define new function. (pthread_mutex::can_be_unlocked): Detect no_owner situation. Handle PTHREAD_MUTEX_NORMAL as a special case. (pthread::create_cancel_event): Use C++ boolean values. (pthread::precreate): Use method to set mutex type. (pthread_cond::pthread_cond): Ditto. (pthread_rwlock::pthread_rwlock): Ditto. (pthread_mutex::pthread_mutex): Set owner to _new_mutex initially. (pthread_mutex::~pthread_mutex): Reset various elements to make it clearer if they are incorrectly reused. (pthread_mutex::lock): Add clarifying comment. (pthread_mutex::unlock): Attempt to handle various mutex types correctly. In particular, reinstate ability to have one thread unlock another thread's mutex if type == PTHREAD_MUTEX_NORMAL. (semaphore::_fixup_after_fork): Avoid redundancy. (pthread_mutex::_fixup_after_fork): Ditto. Fix debugging statement. (__pthread_cond_dowait): Accommodate changes to remove previously inexplicable use can_be_unblocked() as a static function. * thread.h: Rename "is_good_initialzer*" to "is_initializer*" throughout. (pthread_mutex): Reorganize. Make many things private. (pthread_mutex::no_owner): Define new method. (pthread_mutex::_new_mutex): Define new constant. (pthread_mutex::_unlocked_mutex): Ditto. (pthread_mutex::_destroyed_mutex): Ditto.
Christopher Faylor
2010-02-22 20:36:04 +0000
80206d7f71* cygpath.cc (do_pathconv): Fix erroneously printing native NT path prefix introduced by previous patch.
Corinna Vinschen
2010-02-22 17:40:46 +0000
f2ecf0ee5b* lc_era.h: Redefine lc_era_t to keep default date and time formats as well to workaround YA Windows shortcoming. Refresh with latest data. * lc_msg.h: Refresh with latest data. * nlsfuncs.cc (__eval_datetimefmt): Revert latest change. (__set_lc_time_from_win): Rename res to era. Prefer default date and time formats from era array if available. (__set_lc_messages_from_win): Rename res to msg.
Corinna Vinschen
2010-02-22 11:01:46 +0000
6eaf061dc4* libc/include/langinfo.h (_NL_TIME_DATE_FMT): Define new nl_item value for LC_TIME entry date_fmt. (_DATE_FMT): Define "official" GNU name same as _NL_TIME_DATE_FMT. * libc/locale/nl_langinfo.c (nl_langinfo): Add case for _DATE_FMT.
Corinna Vinschen
2010-02-22 10:53:04 +0000
5d76584680* lc_era.h (lc_era): Fix "ja_JP" era_t_fmt entry to use traditional format. * nlsfuncs.cc (dt_flags): Remove DT_ERACAL since crippled era data in Windows makes it useless. (__eval_datetimefmt): Check if locale's default calender has non-gregorian start year. Use era year also in default date entries, if so.
Corinna Vinschen
2010-02-20 22:10:26 +0000