Commit Graph

  • 3eedbf8611 * winlean.h (__STRALIGN_H_): Drop definition. Corinna Vinschen 2012-07-06 14:44:13 +0000
  • e75fa972ac * mips.h: Fix a typo in description. Maciej W. Rozycki 2012-07-06 14:20:22 +0000
  • 44fb3af98a * fhandler_procnet.cc: Fix copyright. * syslog.cc: Ditto. * libc/minires-os-if.c: Ditto. * libc/minires.h: Ditto. Corinna Vinschen 2012-07-06 13:56:37 +0000
  • acddda4bf9 Add files missing in previous checkin Corinna Vinschen 2012-07-06 13:53:23 +0000
  • db80f635c1 In terms of network related functionality, rely on Winsock definitions as much as possible: * dtable.cc: Drop including sys/socket.h. * fhandler_procnet.cc: Change includes accordingly. * fhandler_socket.cc: Ditto. (fhandler_socket::listen): Avoid gcc error message initializing sin6. (LPFN_WSARECVMSG): Only define when building against w32api headers. * net.cc: Change includes accordingly. Define USE_SYS_TYPES_FD_SET and __WSA_ERR_MACROS_DEFINED. Define _INC_NETIOAPI temporarily and explain why. (struct _IP_ADAPTER_UNICAST_ADDRESS_LH): Only define when building against w32api headers. (struct _IP_ADAPTER_ADDRESSES_LH): Ditto. (SIO_GET_INTERFACE_LIST): Ditto. (ws_freeaddrinfo): Rename from freeaddrinfo so as not to collide with Winsock declaration. Change througout. (ws_getaddrinfo): Ditto. (ws_getnameinfo): Ditto. * select.cc: Include netdb.h after defining USE_SYS_TYPES_FD_SET. * syslog.cc: Drop including netinet/in.h. Define USE_SYS_TYPES_FD_SET and include ws2tcpip.h. * include/netdb.h (struct addrinfo): Don't define when building Cygwin. * include/cygwin/if.h: Don't declare if_xxx functions when building Cygwin. * include/cygwin/in.h: Disable most definitions when building Cygwin. * include/cygwin/socket.h: Disable sockaddr and sockaddr_storage definitions when building Cygwin. Same for MCAST_INCLUDE/MCAST_EXCLUDE. * libc/inet_addr.c: Don't define __INSIDE_CYGWIN__ nor __INSIDE_CYGWIN_NET__. * libc/inet_network.c: Ditto. * libc/minires.h: Drop redundant inclusion of netdb.h. Define __INSIDE_CYGWIN_NET__ only before including netdb.h and resolver headers. Corinna Vinschen 2012-07-06 13:52:19 +0000
  • dc45bfa0bf * include/winsock.h: Keep IP_OPTIONS and SO_xxx definitions when building Cygwin. * include/winsock2.h: Keep sockaddr and sockaddr_storage definitions when building Cygwin. Corinna Vinschen 2012-07-06 13:52:10 +0000
  • f3a43e7ef0 * winbase.h: Throughout use LONG rather than long type to prepare for 64 bit. (InterlockedCompareExchangePointer): Define. Corinna Vinschen 2012-07-06 13:51:26 +0000
  • 6f94526c1c * fhandler_registry.cc (RegOpenUserClassesRoot): Only define when building against w32api headers. (RegOpenCurrentUser): Ditto. * fhandler_tty.cc (GetNamedPipeClientProcessId): Ditto. * ntdll.h (enum _PROCESSINFOCLASS): Add ProcessImageFileName. (RtlInitAnsiString): Declare. (RtlUnicodeStringToAnsiSize): Declare. * sched.cc (GetForegroundWindow): Ditto. * sec_helper.cc (SECURITY_NT_NON_UNIQUE): Define as SECURITY_NT_NON_UNIQUE_RID when building against w32api headers. (cygsid::get_sid): Use SECURITY_NT_NON_UNIQUE rather than SECURITY_NT_NON_UNIQUE_RID. (__sec_user): Use PISECURITY_DESCRIPTOR rather than PSECURITY_DESCRIPTOR to allow valid pointer arithmetic. (_recycler_sd): Ditto. (_everyone_sd): Ditto. Corinna Vinschen 2012-07-06 13:49:53 +0000
  • 261c701bf3 * advapi32.cc (_ADVAPI32_): Drop definition. * kernel32.cc (_KERNEL32_): Ditto. * winlean.h: Add definitions required to use Mingw64 headers. (FILE_SHARE_VALID_FLAGS): Drop definition. Corinna Vinschen 2012-07-06 13:43:05 +0000
  • a02924944e * winsup.h (_WIN32_WINNT): Define. Explain why. Corinna Vinschen 2012-07-06 12:13:50 +0000
  • 862de2d0ae * libc/rcmd.cc: Don't undef __INSIDE_CYGWIN_NET__. Corinna Vinschen 2012-07-06 12:05:19 +0000
  • da36286e64 * cygwin.sc (.rdata): Include all sections starting with .rdata. (.debug_pubtypes): Make sure section is loaded at the end like all other debug sections. Corinna Vinschen 2012-07-06 10:44:38 +0000
  • 0246baaea2 Allow building of Cygwin using Mingw64 SDK headers: * libc/include/sys/time.h: Drop _WINSOCK_H guard. Just use _TIMEVAL_DEFINED instead. * libc/include/sys/types.h: Check for _WINSOCKAPI_ along with _WINSOCK_H. * libc/include/sys/unistd.h: Ditto. Corinna Vinschen 2012-07-06 10:41:21 +0000
  • 0390476c47 * Makefile.common (ALL_CFLAGS): Change := to = to allow overriding in dependent Makefiles. Corinna Vinschen 2012-07-06 10:32:11 +0000
  • 8dcd55f74f gas/config/ * tc-xgate.c: Revised assembler so that operands are collected before the addressing mode is determined. Sean Keys 2012-07-05 19:37:52 +0000
  • ea51d3d425 * dcrt0.cc (build_argv): Guard against NULL pointer dereference found by Clang. Christopher Faylor 2012-07-04 17:30:55 +0000
  • 85b2b14e7a * exceptions.cc (setup_handler): Remove unneeded assignment found by Clang. Christopher Faylor 2012-07-04 06:06:54 +0000
  • 226133e80c * hookapi.cc (find_first_notloaded_dll): Remove unused assignment of importRVASize found by Clang. Christopher Faylor 2012-07-04 06:04:16 +0000
  • 0bdf68577d * fhandler_tty.cc (fhandler_pty_slave::read): Remove duplicate assignment to bytes_in_pipe found by Clang. Christopher Faylor 2012-07-04 06:01:16 +0000
  • aa01a03c10 fix typo Christopher Faylor 2012-07-04 02:26:52 +0000
  • 51e4c3d44c * exceptions.cc (exception::handle): Use error_code in klog, as intended. Found by Clang. Christopher Faylor 2012-07-03 05:31:11 +0000
  • 8fd8f9e72b * fhandler.h (class fhandler_dev_clipboard): Remove member eof. * fhandler_clipboard.cc: Throughout remove handling of eof member. (fhandler_dev_clipboard::write): Handle EOF condition immediately, rather than pushing it erroneously to the next read call. Rearrange code. Fix bug in CF_UNICODETEXT case which potentially dropped single bytes at the end of the buffer. Add comment. * strfuncs.cc (sys_cp_wcstombs): Allow returning non-NUL-terminated buffer if dst != NULL and len == (size_t) -1. Extend leading comment to explain what's returned in more detail. Corinna Vinschen 2012-07-02 20:17:27 +0000
  • ceec584ad3 * fhandler_virtual.cc (fhandler_virtual::opendir): Eliminate duplicate assignment found by Clang. Christopher Faylor 2012-07-02 20:01:19 +0000
  • e82360f659 * fhandler_registry.cc (fhandler_registry::open): Handle missing EROFS error condition pointed to by Clang. Christopher Faylor 2012-07-02 20:00:22 +0000
  • e9d7f5b3a9 * pinfo.cc (_pinfo::commune_request): Eliminate unneeded assignment found by Clang. Christopher Faylor 2012-07-02 19:55:51 +0000
  • fb348d22af * external.cc (fillout_pinfo): Return NULL rather than 0. (exit_process): Guard against NULL pointer dereference found by Clang. Christopher Faylor 2012-07-02 19:48:33 +0000
  • e14a5a7efa * mount.cc (mount_info::conv_to_win32_path): Eliminate unneeded assignment found by CLANG. * path.cc (symlink_info::check): Remove unneeded/unused variable found by CLANG. Christopher Faylor 2012-07-02 19:42:34 +0000
  • fade1f2e21 * path.cc (symlink_info::check): Remove unneeded/unused variable. Christopher Faylor 2012-07-02 19:38:41 +0000
  • 26e603454f * dll_init.cc (dll_list::alloc): Take long UNC paths into account. Corinna Vinschen 2012-07-02 14:14:01 +0000
  • 1809b65e23 * Makefile.in: Add some more optimization flags for cygwait, malloc and path. Explain why -fomit-frame-pointer doesn't work right for passwd.o and path.o. Add -static to link command line for cygwin0.dll. * fhandler_disk_file.cc (fhandler_disk_file::facl): Reorganize slightly to silence compiler warning when compiling with -fstack-check. * net.cc (inet_ntop6): Initialize structure members to silence compiler warning when compiling with -fstack-check. * pseudo-reloc.cc (_pei386_runtime_relocator): Make this a C function. Detect NULL u. * winsup.h (_pei386_runtime_relocator): Declare this as extern "C". * lib/_cygwin_crt0_common.cc (_pei386_runtime_relocator): Call with NULL argument. * signal.cc (sigaction_worker): Eliminate last argument. Let callers report their own strace info. Regparmize. (sigaction): Reflect sigaction_worker changes. (siginterrupt): Ditto. * exceptions.cc: Update copyright. Christopher Faylor 2012-07-02 02:24:25 +0000
  • c4441d46b6 * path.cc: Perform some whitespace fixups throughout. Christopher Faylor 2012-07-02 00:40:06 +0000
  • ca4d966d1b * kernel32.cc (_KERNEL32_): Define. Explain why. (CreateFileMappingW): Drop undocumented flProtect flags. Corinna Vinschen 2012-06-28 20:06:23 +0000
  • ca7f6a04b3 * fhandler_serial.cc: Fix includes for IOCTL codes to support Mingw64. * fhandler_tape.cc: Ditto. * flock.cc (allow_others_to_sync): Use PISECURITY_DESCRIPTOR since PSECURITY_DESCRIPTOR is supposed to be the opaque type. * ntdll.h: Remove CreateDisposition flags again, now that they are defined in Mingw64's ntdef.h. Ditto for Create/Open flags. Corinna Vinschen 2012-06-28 19:25:22 +0000
  • 06e429fd6d * exceptions.cc (RtlUnwind): Align declaration with MSDN. * ntdll.h: Define CreateDisposition Flags. Add comments. * winlean.h: Define FILE_SHARE_VALID_FLAGS if using Mingw64 headers. Corinna Vinschen 2012-06-28 14:06:06 +0000
  • 27c4e2e1ee * configure.ac (CFLAGS_FOR_TARGET, CXXFLAGS_FOR_TARGET): Make sure they contain -O2. * configure: Regenerate. Alexandre Oliva 2012-06-28 11:50:52 +0000
  • 515ff84388 * common.h (AT_L1I_CACHESHAPE, AT_L1D_CACHESHAPE, AT_L2_CACHESHAPE, AT_L3_CACHESHAPE): New defines. Iain D Sandoe 2012-06-28 09:12:27 +0000
  • 9b82034b29 * doc/Makefile.am (makedoc): Use LDFLAGS_FOR_BUILD not LDFLAGS. * doc/Makefile.in: Regenerate. Corinna Vinschen 2012-06-28 08:26:00 +0000
  • b052bf2671 * cygwait.h (cancelable_wait): Make extern to avoid always including. * select.cc (allocfd_set): Try to make a little more efficient. (cygwin_select): Break into two functions to avoid what seems to be a strange compiler problem with alloca and sel constructor. (select): New function. Always honor return from call_signal_handler. (select_stuff::wait): Always honor return from call_signal_handler. * select.h (select_stuff::select_stuff): Use NULL to initialize pointers rather than 0. Christopher Faylor 2012-06-27 21:42:11 +0000
  • c60437258a * exceptions.cc (exception::handle): Cast exception code to NTSTATUS for comparison. * ntdll.h: Drop defining NT status codes in favor of including ntstatus.h. Corinna Vinschen 2012-06-27 16:24:54 +0000
  • 165f575341 * miscfuncs.cc (WritePipeOverlapped): Define second parameter LPCVOID, rather than PCVOID. * miscfuncs.h (WritePipeOverlapped): Ditto. Corinna Vinschen 2012-06-27 13:35:48 +0000
  • 25f3ea84f8 * advapi32.cc (_ADVAPI32_): Define. Explain why. (ImpersonateNamedPipeClient): Add missing WINAPI. * ntdll.h (STATUS_INVALID_PARAMETER): Only define if it isn't already. (STATUS_DLL_NOT_FOUND): Ditto. (STATUS_ENTRYPOINT_NOT_FOUND): Ditto. (enum _EVENT_TYPE): Guard against redefinition since it's already defined in Mingw64's ntdef.h. (enum _TIMER_TYPE): Ditto. (enum _SECTION_INHERIT): Define if using Mingw64 headers since it's missing in Mingw64's ntdef.h. * winlean.h (__STRALIGN_H_): Define before including windows.h. Corinna Vinschen 2012-06-27 13:19:11 +0000
  • a90b8a20ed * winsup.h (GetLastError): Drop redundant definition. Corinna Vinschen 2012-06-26 16:36:00 +0000
  • f804f416f3 * libc/include/sys/types.h: Don't use the same preprocessor guard for time_t, timespec, and itimerspec. Add a separate guard specifically for timespec and always unconditionally define itimerspec. Christopher Faylor 2012-06-26 16:03:12 +0000
  • 8bec43b39b fix typo Christopher Faylor 2012-06-26 05:23:10 +0000
  • 6ec05d23b3 * cygwait.cc (cancelable_wait): Make sure that timer is cancelled before cancelling thread. Christopher Faylor 2012-06-25 16:28:50 +0000
  • d6953d3f7d * cygwait.h (cancelable_wait): Need to force time to negative to indicate relative time. Christopher Faylor 2012-06-25 05:00:39 +0000
  • 4aebe6cd45 PR 14125 * NEWS: Document additions to .gdb_index. * dwarf2read.c: #include "gdb/gdb-index.h". (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro. (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro. (DW2_GDB_INDEX_CU_SET_VALUE): New macro. (dwarf2_read_index): Recognize version 7. (dw2_do_expand_symtabs_matching): New args want_specific_block, block_kind, domain): All callers updated. (dw2_find_symbol_file): Handle new index CU values. (dw2_expand_symtabs_matching): Match symbol kind if requested. (add_index_entry): New args is_static, kind. All callers updated. (offset_type_compare, uniquify_cu_indices): New functions (symbol_kind): New function. (write_psymtabs_to_index): Remove duplicate CU values. (write_psymtabs_to_index): Write .gdb_index version 7. Doug Evans 2012-06-23 22:23:43 +0000
  • 970790c681 * path.cc (realpath): Fix comment. Corinna Vinschen 2012-06-22 09:51:29 +0000
  • 797ff24dfb * path.cc (realpath): Call mount_info::conv_to_posix_path rather than mount_info::cygdrive_posix_path to convert DOS paths to POSIX paths. Add comment to explain why that's necessary at all. Corinna Vinschen 2012-06-21 09:33:19 +0000
  • 978441cc0e * cygwait.h (LARGE_NULL): Define. (cancelable_wait): Define variant which accepts DWORD time argument. (cygwait): Use cancelable_wait with DWORD argument. (cygwait): Use cancelable_wait with DWORD argument and cw_sig_eintr for timeout-only case. * exceptions.cc (handle_sigsuspend): Use LARGE_NULL as second argument to distinguish between cancelable_wait variants. * thread.cc (pthread_mutex::lock): Ditto. (pthread::join): Ditto. (semaphore::_timedwait): Ditto. * thread.h (fast_mutex::lock): Ditto. * wait.cc (wait4): Ditto. Christopher Faylor 2012-06-19 00:52:59 +0000
  • 2addde8cb1 Revert errneous checkin. Check in actual change associated with ChangeLog. Christopher Faylor 2012-06-19 00:38:02 +0000
  • af5cd14583 * cygwait.cc (cancelable_wait): Mimic old cygwait behavior more closely wrt handling of call_signal_handler. * cygwait.h (WAIT_CANCELED): Move here and redefine. (WAIT_SIGNALED): Ditto. * thread.h (WAIT_CANCELED): Delete. (WAIT_SIGNALED): Ditto. Christopher Faylor 2012-06-19 00:31:15 +0000
  • 88fbcb5afd merge from gcc DJ Delorie 2012-06-19 00:03:49 +0000
  • 099817c3db * cygheap.cc (init_cygheap::init_installation_root): Rearrange code creating valid native NT installation_root path. Only strip last backslash from path if the result is a valid NT path. Explain why. Corinna Vinschen 2012-06-18 20:17:15 +0000
  • 4ae6378382 Add '#include "cygwait.h"' throughout, where appropriate. * DevNotes: Add entry cgf-000012. * Makefile.in (DLL_OFILES): Add cygwait.o. * sigproc.h: Remove cygwait definitions. * cygwait.h: New file. Define/declare Cygwin waitfor functions. * cygwait.cc: Ditto. * exceptions.cc: Include cygwait.h. (handle_sigsuspend): Accommodate change in cancelable_wait arguments. (sigpacket::process): Display thread tls in debugging output. * fhandler.cc (fhandler_base_overlapped::wait_overlapped): Use symbolic names for signal and cancel return. * fhandler_console.cc (fhandler_console::read): Ditto. (fhandler_dev_dsp::Audio_out::waitforspace): Ditto. fhandler_dev_dsp::Audio_in::waitfordata): Ditto. * fhandler_fifo.cc (fhandler_fifo::wait): Ditto. * fhandler_serial.cc (fhandler_serial::raw_read): Ditto. * fhandler_tty.cc (fhandler_pty_slave::read): Ditto. * select.cc (cygwin_select): Ditto. * wait.cc (wait4): Ditto. * thread.cc (cancelable_wait): Move definition to cygwait.h. (pthread_cond::wait): Accommodate change in cancelable_wait arguments. (pthread_mutex::lock): Ditto. (pthread_spinlock::lock): Ditto. (pthread::join): Ditto. (pthread::thread_init_wrapper): Display tls in debugging output. (semaphore::_timedwait): Ditto. * thread.h (cw_sig_wait): Move to cygwait.h. (cw_cancel_action): Delete. (cancelable_wait): Move declaration to cygwait.h. Christopher Faylor 2012-06-17 20:50:24 +0000
  • d66ef282c2 2012-06-12 Rafael Ávila de Espíndola <respindola@mozilla.com> Rafael Ávila de Espíndola 2012-06-12 22:50:44 +0000
  • 933ee0ecbf Fix last ChangeLog entry. Yaakov Selkowitz 2012-06-12 18:34:38 +0000
  • 3e5a48af5e * regex/regcomp.c (p_ere): Allow vertical-line following left-parenthesis in ERE, as in glibc. Yaakov Selkowitz 2012-06-11 22:15:27 +0000
  • 53943a2e87 * include/sys/elf_common.h (R_386_16): Define. (R_386_PC16): Define. (R_386_8): Define. (R_386_PC8): Define. Yaakov Selkowitz 2012-06-10 18:28:16 +0000
  • abf1b60039 * select.cc (cygwin_select): Remove select_timeout test. (select_stuff::wait): Return select_set_zero on timeout. (thread_socket): Report timeout when debugging. Christopher Faylor 2012-06-10 01:57:53 +0000
  • 3791ab4cd5 merge from gcc DJ Delorie 2012-06-08 19:01:23 +0000
  • 275f225520 * avr.h: (AVR_ISA_XCH): New define. (AVR_ISA_XMEGA): Use it. (XCH, LAS, LAT, LAC): New XMEGA opcodes. Nick Clifton 2012-06-07 16:43:36 +0000
  • f513e3a206 * include/elf.h: Update from FreeBSD. * include/machine/elf.h: New header, from FreeBSD. * include/sys/elf.h: Ditto. * include/sys/elf32.h: Update from FreeBSD. * include/sys/elf64.h: Ditto. * include/sys/elf_common.h: Ditto. (R_IA64_*): Define Linux-style names as aliases to R_IA_64_*. (R_SH_*): Define, based on sh-4 psABI. (R_390_*): Define, based on s390x psABI. * include/sys/elf_generic.h: Ditto. Yaakov Selkowitz 2012-06-06 04:45:48 +0000
  • 8336af85e9 * libc/stdio/findfp.c (__sinit): Avoid infinite recursion on _REENT_SMALL targets. Add comment to explain. Corinna Vinschen 2012-06-05 16:17:16 +0000
  • cd69beda67 * fhandler_disk_file.cc (fhandler_disk_file::link ): Translate STATUS_NOT_SUPPORTED to EPERM as well. Corinna Vinschen 2012-06-04 08:49:13 +0000
  • b9c61a8d7b * dtable.cc (dtable::dup3): Only return with lock set when O_EXCL flag is passed in. * syscalls.cc (dup_finish): Pass O_EXCL in flags to dtable::dup3. Christopher Faylor 2012-06-04 01:26:05 +0000
  • 3143cb7c00 * DevNotes: Add entry cgf-000011. * fhandler.h (fhandler_base::refcnt): Delete. (fhandler_base::inc_refcnt): New function. (fhandler_base::dec_refcnt): New function. * cygheap.h (cygheap_fdnew::~cygheap_fdnew): Accommodate split of refcnt to inc_refcnt/dec_refcnt. (cygheap_fdget::cygheap_fdget): Ditto. (cygheap_fdget::~cygheap_fdget::cygheap_fdget): Ditto. * dtable.cc (dtable::release): Ditto. (cygwin_attach_handle_to_fd): Ditto. (dtable::init_std_file_from_handle): Ditto. (dtable::dup3): On success, return with fdtab locked. * dtable.h (dtable): Add dup_finish as a friend. * syscalls.cc (dup_finish): Define new function. Increment refcnt while fdtab is locked. (dup2): Use common dup_finish() to perform dup operation. (dup3): Ditto. Christopher Faylor 2012-06-03 18:02:45 +0000
  • ff80d22a7c * new-features.sgml (ov-new1.7.16): Document ReFS support. Corinna Vinschen 2012-06-03 16:53:03 +0000
  • ba9846ad9b *** empty log message *** Corinna Vinschen 2012-06-03 16:47:57 +0000
  • 115d74b99e * globals.cc (ro_u_refs): New R/O unicode string. * mount.cc (fs_info::update): Recognize ReFS. * mount.h (enum fs_info_type): Add refs. (class fs_info): Add refs flag and accessor methods. * ntdll.h (RtlAddAccessAllowedAceEx): Declare. (RtlAddAccessDeniedAceEx): Declare. * path.h (path_conv::fs_is_refs): Define. * sec_helper.cc (_recycler_sd): New function to create security descriptors suitable for the recycler bin starting with Vista. * security.cc (add_access_allowed_ace): Use RtlAddAccessAllowedAceEx and drop code to set AceFlags explicitely. (add_access_denied_ace): Use RtlAddAccessDeniedAceEx and drop code to set AceFlags explicitely. * security.h (_recycler_sd): Declare. (recycler_sd): Define. * syscalls.cc (desktop_ini): Change formatting. (desktop_ini_ext): Define third line of recycler desktop.ini file since Vista, (try_to_bin): Handle ReFS just like NTFS. Write Vista and later Recycler in all uppercase, just like shell32 does when recreating it. Fix comments to include ReFS. Don't implicitely reuse object attributes from earlier NtOpenFile call, rather recreate it for safety. Use recycler_sd call when creating security descriptor for Recycler dirs and files on Vista and later. Write third line of desktop.ini when on Vista and later. Corinna Vinschen 2012-06-03 16:46:53 +0000
  • 6a713dabad * cygcheck.cc (dump_sysinfo): Change "Server 8" to official "Server 2012". Corinna Vinschen 2012-06-03 16:45:27 +0000
  • b7ae842aea * winbase.h: Add missing copyright date. Christopher Faylor 2012-06-03 16:32:00 +0000
  • 7c15768aa5 * select.cc (cygwin_select): Make sure that we only return -1 as an error return. (select_stuff::wait): Semi-revert to previous method for filling out w4. Christopher Faylor 2012-06-03 16:31:33 +0000
  • 00a3124325 * select.cc (cygwin_select): Add some comments. (select_stuff::wait): Ditto. Christopher Faylor 2012-06-03 03:29:47 +0000
  • 45b61a88be * DevNotes: Add entry cgf-000010. * select.cc (set_handle_or_return_if_not_open): Remove unneeded final backslash from definition. (cygwin_select): Reorganize to incorporate outer retry loop. Move remaining time recalculation here for retry case. Use select_stuff::wait_states for loop control. (select_stuff::cleanup): Avoid unneeded initialization. (select_stuff::wait): Modify definition to return select_stuff::wait_states. Eliminate is_cancelable. Don't element 1 of an array if it is a cancel handle. Remove loop. Rely on being called from enclosing loop in cygwin_select. Remove time recalculation when restarting. Try harder to always return from the bottom. * select.h (select_stuff::wait_state): New enum. (select_stuff::wait): Modify declaration to return select_stuff::wait_states. Christopher Faylor 2012-06-03 02:59:20 +0000
  • faab45455a * exceptions.cc (setup_handler): Make debugging output a little more verbose. Christopher Faylor 2012-06-03 02:26:58 +0000
  • 841ab2f971 * cygtls.h (_cygtls::protect_linked_list): Delete unused field. Christopher Faylor 2012-06-02 20:28:57 +0000
  • d5eb5ee3a0 Fix typo. Corinna Vinschen 2012-05-31 09:18:58 +0000
  • 94c837599c * libc/stdio/local.h (_newlib_sfp_lock_exit): Fix typo in non-pthread version. Corinna Vinschen 2012-05-31 07:33:59 +0000
  • 53bbfeed98 * libc/stdio/fgetws.c (_fgetws_r): Call _mbsnrtowcs_r rather than _mbsrtowcs_r and restrict number of wide chars to n - 1. Corinna Vinschen 2012-05-30 14:42:52 +0000
  • 0b592aeef2 * hookapi.cc (find_first_notloaded_dll): Extend comment. Fix usage of mapped memory. Shorten static library name buffer to MAX_PATH. Use strlcpy to copy library name to buffer. Only Unmap "map" if it has been Mapped before. * pinfo.cc (status_exit): Drop unneeded declaration of find_first_notloaded_dll in favor of the declaration in winsup.h. Corinna Vinschen 2012-05-30 14:37:53 +0000
  • 52174bb4cc * thread.cc: Remove temporary newlib workaround, now that newlib handles thread cancellation by itself. (class __cygwin_lock_handler): Remove. (__cygwin_lock_cleanup): Remove. (__cygwin_lock_lock): Revert newlib workaround, (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. (pthread::pop_cleanup_handler): Ditto. Corinna Vinschen 2012-05-30 09:15:38 +0000
  • 4aa28d8ae2 * libc/stdio/local.h (_newlib_flockfile_start): New macro to secure stream related critical section against thread cancellation. (_newlib_flockfile_exit): Ditto. (_newlib_sfp_lock_end): Ditto. (_newlib_sfp_lock_start): Ditto for the list of streams. (_newlib_sfp_lock_exit): Ditto. (_newlib_sfp_lock_end): Ditto. Use aforementioned macros in place of _flockfile/_funlockfile and __sfp_lock_acquire/__sfp_lock_release throughout the code. * libc/stdio/fclose.c: Explicitely disable and re-enable thread cancellation. Explain why. * libc/stdio/freopen.c: Ditto. * libc/stdio64/freopen64.c: Ditto. Corinna Vinschen 2012-05-30 08:58:42 +0000
  • 75b6133098 Resync config/ from GCC. Joseph Myers 2012-05-29 15:58:15 +0000
  • d6719f7e17 * select.cc (select_stuff::wait): Temporarily disable restarting entirely. Corinna Vinschen 2012-05-29 13:11:34 +0000
  • d560c4b2ba * security.h (cygsidlist::+=): Correctly copy well_known_sid info from source cygsid. Corinna Vinschen 2012-05-29 13:01:50 +0000
  • 00ef94f338 * Makefile.in (LIBS): Re-add advapi32.dll. Explain why. * make-64bit-version-with-mingw-w64.sh (LIBS): Ditto. * cyglsa.c: Drop NTDLL function declarations. Use equivalent advapi32 functions again, throughout. * cyglsa64.dll: Regenerate. Corinna Vinschen 2012-05-29 12:46:01 +0000
  • d610936513 * registry.cc (reg_key::build_reg): Fix typo in debug output. Corinna Vinschen 2012-05-25 14:49:56 +0000
  • 8e599b1e3a * select.cc (select_stuff::wait): When not returning after receiving a signal, recalculate timeout. Apply temporary fix to avoid crashes after calling the signal handler. Explain. Corinna Vinschen 2012-05-25 14:33:18 +0000
  • df5cda0e93 * fhandler_serial.cc (fhandler_serial::raw_read): Check for ERROR_OPERATION_ABORTED rather than ERROR_IO_INCOMPLETE after CancelIo. Corinna Vinschen 2012-05-25 11:08:10 +0000
  • 96d5b7d17c * fhandler_serial.cc (fhandler_serial::raw_read): Just call ReadFile directly in case of non-blocking I/O and handle result gracefully. Corinna Vinschen 2012-05-25 09:29:17 +0000
  • 79f6dbe171 gdb/ 2012-05-24 Pedro Alves <palves@redhat.com> Pedro Alves 2012-05-24 16:51:39 +0000
  • 454b03461d gdb/ 2012-05-24 Pedro Alves <palves@redhat.com> Pedro Alves 2012-05-24 16:39:13 +0000
  • 32c02f191b * thread.cc (__cygwin_lock_lock): Replace null thread check with test for cygwin_finished_initializing to handle process startup. (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. Corinna Vinschen 2012-05-24 14:17:51 +0000
  • a7a7311974 * leb128.h: #include stdint.h, inttypes.h. (read_uleb128_to_uint64): Renamed from read_uleb128_to_ull. Change to take a uint64_t * argument instead of unsigned long long. (read_sleb128_to_uint64): Renamed from read_sleb128_to_ll. Change to take an int64_t * argument instead of long long. Doug Evans 2012-05-24 01:18:15 +0000
  • 9cbf10a06e * thread.cc (__cygwin_lock_lock): Take null thread at process startup into account. (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Ditto. Corinna Vinschen 2012-05-23 19:49:39 +0000
  • 2b165a453e * thread.cc (pthread::cancel): Re-allow asynchronous cancellation from Cygwin code since it looks like the problem is Windows only. Corinna Vinschen 2012-05-23 17:39:39 +0000
  • bff08077a6 * thread.cc: Add a temporary workaround to help Cygwin along while newlib doesn't install cleanup handlers. Explain the problem. (class __cygwin_lock_handler): New class. (__cygwin_lock_cleanup): New function. (__cygwin_lock_lock): Push __cygwin_lock_cleanup thread cleanup handler. (__cygwin_lock_trylock): Ditto. (__cygwin_lock_unlock): Pop thread cleanup handler. (pthread::pop_cleanup_handler): Temporarily allow cleanup function to destroy cleanup handler so we can pop in another function than we pushed in. Corinna Vinschen 2012-05-23 16:26:34 +0000
  • 86b35406f2 * thread.cc (pthread::cancel): Only allow asynchronous cancellation if the thread is not executing Cygwin or Windows code. Explain why. Corinna Vinschen 2012-05-23 13:30:26 +0000
  • 750329ae90 * thread.cc (pthread::precreate): Make sure mutex is recursive. Explain why. Corinna Vinschen 2012-05-23 13:24:57 +0000