summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add mingwex/tsearch.c to ChangeLogEarnie Boyd2012-08-031-0/+1
|
* * include/_mingw.h (threadlocalinfostruct, threadmbinfostruct,Earnie Boyd2012-08-033-11/+27
| | | | *pthreadlocinfo, *pthreadmbcinfo, _locale_tstruct, *_locale_t): Declare.
* * include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd2012-08-033-1/+9
| | | | * include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
* 2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>Earnie Boyd2012-08-032-0/+26
| | | | * include/process.h (_wexec*, _wspawn*): Declare.
* * include/stdio.h (_lock_file, _unlock_file): Declare.Earnie Boyd2012-08-032-1/+4
|
* * include/stdio.h (_getws, _putws): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd2012-08-032-2/+7
| | | | | (_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto. (_wrename, _wremove, _wperror, _wpopen): Ditto.
* * include/wchar.h (_wcstrtoi64): Declare.Earnie Boyd2012-08-033-4/+12
| | | | | | (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
* * include/stdlib.h (_strtoi64): Declare.Earnie Boyd2012-08-032-0/+20
| | | | | | | | | | (_strtoi64_l): Ditto. (_strtoui64): Ditto. (_strtoui64_l): Ditto. (_wcstrtoi64): Ditto. (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
* * exceptions.cc (sigdelayed): Simplify declaration.Christopher Faylor2012-08-032-5/+11
| | | | | (_cygtls::call_signal_handler): Fix test for when to pop signal stack. Only do it exactly when what is on the stack is a no-op.
* * spawn.cc (child_info_spawn::worker): Put back a minor variation of Corinna'sChristopher Faylor2012-08-032-4/+16
| | | | test for detecting a background process when starting a non-cygwin process.
* * faq-using.xml (faq.using.man): Make relevance to whatis explicit.Corinna Vinschen2012-08-032-2/+8
|
* * elf/m68hc11.h: #define E_M68HC11_NO_BANK_WARNINGSean Keys2012-08-021-0/+5
| | | | 0x000000200
* * m68hc11.h: #define E_M68HC11_NO_BANK_WARNINGSean Keys2012-08-021-0/+3
| | | | 0x000000200
* * lib/Makefile.in (amvideo.h): Dependencies are not met making this fileEarnie Boyd2012-08-022-1/+11
| | | | | implementation incomplete. Do not deliver it. (amaudio.h): Ditto.
* * include/setupapi.h: Correct typos and truncations.Earnie Boyd2012-08-022-6/+10
|
* * include/winnt.h (MemoryBarrier): Add definition.Earnie Boyd2012-08-012-0/+17
|
* * include/cygwin/socket.h (MSG_BCAST): Define.Corinna Vinschen2012-08-012-0/+8
| | | | (MSG_MCAST): Define.
* * include/winbase.h (InterlockedDecrement): Modify declaration fromEarnie Boyd2012-08-012-3/+7
| | | | | | LONG WINAPI to LONG __cdecl to match Microsoft documentation. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* * include/wtsapi32.h (WTSVirtualChannelClose): Add declaration.Earnie Boyd2012-08-013-1/+61
| | | | | | | | | | | (WTSVirtualChannelOpen): Ditto. (WTSVirtualchannelOpenEx): Ditto. (WTSVirtualChannelPurgeInput): Ditto. (WTSVirtualChannelPurgeOutput): Ditto. (WTSVirtualChannelQuery): Ditto. (WTSVirtualChannelRead): Ditto. (WTSVirtualChannelWrite): Ditto. * lib/wtsapi32.def (WTSVirtualChannelOpenEx@12): Add import.
* * include/excpt.h (__try1): Define based on _WIN64 definition.Earnie Boyd2012-08-012-5/+23
| | | | (__except1): Ditto.
* * include/winuser.h (tagMENUITEMINFOA): Correct dwItemData definition.Earnie Boyd2012-08-012-2/+7
| | | | (tagMENUITEMINFOW): Ditto.
* * fhandler.h (fhandler_socket::recv_internal): Add bool parameter.Corinna Vinschen2012-08-013-15/+36
| | | | | | | | | | | | | | | | Add regparm attribute. * fhandler_socket.cc (fhandler_socket::read): Call recv_internal with second parameter set to false. (fhandler_socket::readv): Ditto. (fhandler_socket::recvfrom): Ditto. (fhandler_socket::recv_internal): Convert use_recvmsg from local variable to parameter. Use as request for using WSARecvMsg. Only fail if WSARecvMsg can't be loaded and wsamsg->Control.len > 0, otherwise use WSARecv{From}. Restrict dwFlags to MSG_PEEK when using WSARecvMsg. (fhandler_socket::recvmsg): Prefer using WSARecvMsg. Change priority of tests for not using WSARecvMsg. Call recv_internal with second parameter set accordingly.
* * Makefile.in: Semi-revert patch from 2012-07-01, assuming the previousCorinna Vinschen2012-08-011-9/+2
| | | | patch to etc::dir_changed fixes the underlying issue.
* * Makefile.in: Semi-revert patch from 2012-07-01, assuming the previousCorinna Vinschen2012-08-011-0/+5
| | | | patch to etc::dir_changed fixes the underlying issue.
* include/opcode/Maciej W. Rozycki2012-07-312-18/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * mips.h: Document microMIPS DSP ASE usage. (MICROMIPSOP_MASK_DSPACC, MICROMIPSOP_SH_DSPACC): Update for microMIPS DSP ASE support. (MICROMIPSOP_MASK_DSPSFT, MICROMIPSOP_SH_DSPSFT): Likewise. (MICROMIPSOP_MASK_SA3, MICROMIPSOP_SH_SA3): Likewise. (MICROMIPSOP_MASK_SA4, MICROMIPSOP_SH_SA4): Likewise. (MICROMIPSOP_MASK_IMM8, MICROMIPSOP_SH_IMM8): Likewise. (MICROMIPSOP_MASK_IMM10, MICROMIPSOP_SH_IMM10): Likewise. (MICROMIPSOP_MASK_WRDSP, MICROMIPSOP_SH_WRDSP): Likewise. (MICROMIPSOP_MASK_BP, MICROMIPSOP_SH_BP): Likewise. gas/ * config/tc-mips.c (macro_build) <'2'>: Handle microMIPS. (macro) <M_BALIGN>: Update error handling. (validate_micromips_insn) <'2', '3', '4', '5', '6'>: New cases. <'7', '8', '0', '@', '^'>: Likewise. (mips_ip) <'2', '3', '4', '5', '6', '7', '8'>: Handle microMIPS. <'9'>: Fix formatting. <'0', '@'>: Handle microMIPS. <'^'>: New case. gas/testsuite/ * gas/mips/micromips@mips32-dsp.d: New. * gas/mips/micromips@mips32-dspr2.d: New. * gas/mips/mips32-dsp.d: Remove -mips32r2. * gas/mips/mips32-dspr2.d: Likewise. * gas/mips/mips.exp: (mips_create_arch): Use -mips64r2 for micromips. Use run_dump_test_arches to run dsp tests. opcodes/ * micromips-opc.c (WR_a, RD_a, MOD_a): New macros. (DSP_VOLA): Likewise. (D32, D33): Likewise. (micromips_opcodes): Add DSP ASE instructions. * micromips-dis.c (print_insn_micromips) <'2', '3'>: New cases. <'4', '5', '6', '7', '8', '0', '^', '@'>: Likewise.
* * path.cc (etc::dir_changed): Revert muto changes since function isCorinna Vinschen2012-07-312-28/+25
| | | | called under lock condition anyway.
* * path.cc (etc::dir_changed): Change `io' to a static NO_COPYCorinna Vinschen2012-07-313-22/+40
| | | | | | variable. Explain why. Add a muto to guard overwriting the changed_h handle by multiple concurrent threads. * path.h (class etc): Drop unused changed_h member.
* * libc/sys/sysnecv850/crt0.S (_start): Use v850e-specificKevin Buettner2012-07-302-1/+6
| | | | start up code for v850e2 and v850e2v3 too.
* 2012-07-05 Sean Keys <skeys@ipdatasys.com>Sean Keys2012-07-301-0/+5
| | | | | * opcode/xgate.h: Changed the format string for mode XGATE_OP_DYA_MON.
* * include/_mingw.h: Add __MINGW_VERSION, __MINGW_MAJOR_VERSION,Earnie Boyd2012-07-304-6/+18
| | | | | | | __MINGW_MINOR_VERSION and __MINGW_PATCHLEVEL deprecating the __MINGW32_* versions of the macros. * configure.in: Use __MINGW_VERSION instead of __MINGW32_VERSION. * configure: Ditto.
* * include/inttypes.h: A few items like PRNdPTR and SCNdPTR need 64Earnie Boyd2012-07-302-11/+30
| | | | bitness specified when _WIN64 is defined.
* * include/stdint.h: Include _mingw.h for the definition of __int64 when ↵Earnie Boyd2012-07-302-0/+6
| | | | _WIN64 is defined.
* * Makefile.common (CFLAGS_COMMON): Add temporary define to work around w32apiChristopher Faylor2012-07-305-4/+16
| | | | | | | | problem. * cygwin/winlean.h: Define constant which will be needed eventually. Remove hack in favor of another hack. * cygwin/lib/crt0.h: Use "winlean.h".
* * winlean.h: Add temporary define.Christopher Faylor2012-07-303-6/+6
| | | | * winsup.h: Remove ancient debugging defines.
* * cygwait.cc (cancelable_wait): Add some debugging-only output.Christopher Faylor2012-07-308-48/+75
| | | | | | | | | | | | | | | | | | | | * exceptions.cc (sig_handle_tty_stop): Make sure that incyg is cleared when exiting if we have no parent process. Only wait for signal_arrived. (sigpacket::process): Make continue_now a bool. Delay sending signal_arrived until the end. Make code more defensive to avoid calling signal handler when stopped. Only set signal_arrived when stopped. * sigproc.cc (sig_hold): Rename from sigCONT. Make static. (sig_send): Accommodate sigCONT -> sig_hold rename. (wait_sig): Ditto. * sigproc.h (sigCONT): Delete declaration. * fhandler_console.cc (fhandler_console::write): Use new '%0c' facility to print characters. Change to paranoid to avoid excessive strace output. * fhandler_tty.cc (fhandler_pty_master::accept_input): Make frequent strace printf "paranoid" to help cut down on strace output size. * signal.cc (sigsuspend): Add standard syscall strace output. (sigpause): Ditto. (pause): Ditto. * cygtls.h (_cygtls::reset_signal_arrived): New function.
* Add missing include/sdkddkver.hEarnie Boyd2012-07-301-0/+141
|
* Doh. Check in missing file from previous submission.Christopher Faylor2012-07-291-1/+7
|
* * cygtls.cc (_cygtls::reset_signal_arrived): New function.Christopher Faylor2012-07-295-63/+46
| | | | | | | | | | | | | | | (set_signal_arrived::~set_signal_arrived): Use reset_signal_arrived to reset state. * exceptions.cc (sig_handle_tty_stop): Use WAIT_SIGNALED rather than assume we know the return from cancelable_wait. (_cygtls::interrupt_setup): Modify to allow calling when executing in non-cygwin code via sigdelayed. Always reset signal_arrived. * gendef: Throughout use start_offset rather than the completely wrong sizeof__cygtls. (_sigdelayed): Rewrite to avoid duplication when calling the signal handler. (sigreturn): Delete. * gentls_offsets: Define start_offset rather than sizeof__cygtls. * tlsoffsets.h: Regenerate.
* Add missing file from last checkin.Christopher Faylor2012-07-291-1/+11
|
* * include/sdkddkver.h: New file.Earnie Boyd2012-07-292-0/+7
| | | | * include/windows.h: Include sdkddkver.h.
* * fhandler_termios.cc (fhandler_termios::line_edit): Use special case '%0c'Christopher Faylor2012-07-295-3/+19
| | | | | | | | | handling to print non-printable characters using hex notation. * smallprint.cc (__small_vsprintf): Semi-reimplement printing of non-printable characters in hex but only when padding is specified. * dcrt0.cc (dll_crt0_0): Remove tty_list initialization. * shared.cc (memory_init): Initialize tty_list here. * path.cc (path_conv::check): Remove unneeded parentheses from if check.
* * include/inttypes.h: Add x86_64 target considerations throughout.Corinna Vinschen2012-07-283-91/+230
| | | | | Define macros in C++ according to C99 requirements. * include/stdint.h: Ditto.
* Fix attributation of PR 13135 patch.Nick Clifton2012-07-261-1/+2
|
* * signal.cc (clock_nanosleep): Force return on signal rather than lettingChristopher Faylor2012-07-252-1/+6
| | | | cancelable_wait loop on signal.
* * syscalls.cc (enum bin_status): Add dir_not_empty.Corinna Vinschen2012-07-252-38/+89
| | | | | | | | | | | | | (try_to_bin): Call NtQueryInformationFile(FileInternalInformation) with exact buffer size. Explain why. Ditto for NtSetInformationFile(FileRenameInformation). Handle race-condition which might lead to renaming a non-empty directory. (unlink_nt): Rearrange and partially rephrase comments related to the STATUS_SHARING_VIOLATION case. Fix condition under which a dir is tested for being non-empty. Handle dir_not_empty return code from try_to_bin. Gracefully handle disappearing directory in rm -r workaround. Fix typo in comment.
* * wincap.cc (wincapc::init): Drop memset call since it can result inCorinna Vinschen2012-07-242-53/+39
| | | | | a race condition. Drop all considerations for pre-Windows 2000 systems since Cygwin won't start on them anyway.
* PR binutils/13135Nick Clifton2012-07-242-1/+6
| | | | | | | | | | | | | * arm-dis.c: Add necessary casts for printing integer values. Use %s when printing string values. * hppa-dis.c: Likewise. * m68k-dis.c: Likewise. * microblaze-dis.c: Likewise. * mips-dis.c: Likewise. * ppc-dis.c: Likewise. * sparc-dis.c: Likewise. * dis-asm.h (fprintf_ftype): Add ATTRIBUTE_FPTR_PRINTF_2.
* Change "set_thread_waiting" to "set_signal_arrived" throughout.Christopher Faylor2012-07-2310-12/+16
|
* * DevNotes: Add entry cgf-000013.Christopher Faylor2012-07-2131-380/+381
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cygserver_ipc.h (ipc_set_proc_info): Use _cygtls::ipc_set_proc_info to set per-thread signal arrived value. * cygthread.cc (cygthread::detach): Use per-thread signal_arrived via set_thread_waiting. * fork.cc (_cygtls::fixup_after_fork): Clear signal_arrived. (_cygtls::remove): Close any signal_arrived handle when thread exists. (_cygtls::find_tls): Remove unneeded function. * cygtls.h: Update copyright. (class _cygtls): Reorganize to help avoid rebuilding newlib when structure changes. (_cygtls::event): Delete. (_cygtls::threadkill): Ditto. (_cygtls::signal_waiting): Declare new bool. (_cygtls::find_tls): Delete declaration. (_cygtls::set_threadkill): Ditto. (_cygtls::reset_threadkill): Ditto. (_cygtls::set_signal_arrived): Declare new function. (class set_thread_waiting): Declare new class. * cygwait.cc (cw_nowait_storage): Define. (cygwait): Set per-thread signal_arrived via set_thread_waiting. Don't special-case _main_tls. * cygwait.h (cw_nowait): Define. (cw_infinite): Ditto. (cygwait): Redefine pathological wait-only case. * dcrt0.cc (dll_crt0_0): Remove call to now-defunct events_init(). (dll_crt0_1): Remove call to now-defunct create_signal_arrived(). * exceptions.cc: Reflect set_signal_mask() argument reordering throughout. Remove signal mask synchronization throughout. (events_init): Delete definition. (mask_sync): Delete now-unneeded mask synchronization. (set_signal_mask): Reverse order of arguments to "standard" to, from layout. Rename "newmask" argument to "setmask". Remove debugging. (sig_handle_tty_stop): Use cancelable_wait rather than WFMO. (_cygtls::interrupt_setup): Don't treat "threadkill" events specially. Conditionally set signal_arrived depending on whether the thread has created it or not. (sigpacket::process): Reorganize to reflect thread-specific sending of signals which is more in line with the way it was actually supposed to work. * fhandler_socket.cc (get_inet_addr): Use cancelable_wait rather than IsEventSignalled to avoid potential race. (fhandler_socket::wait_for_events): Set signal_arrived event using set_thread_waiting(). (fhandler_socket::close): Use cygwait for the case of just waiting 10 ms for a signal. * fhandler_tape.cc (fhandler_dev_tape::_lock): Use cancelable_wait rather than WFMO. Redo switch/case tests accordingly. * fhandler_termios.cc (fhandler_termios::bg_check): Use cygwait for case of just waiting 0 ms for a potential signal. * fhandler_tty.cc (fhandler_pty_master::process_slave_output): Use cancelable_wait rather than WFSO. * fhandler_windows.cc (fhandler_windows::read): Set per-thread signal_arrived via set_thread_waiting(). * flock.cc (lf_setlock): Ditto. * select.cc (pselect): Ditto. Set per-thread signal_arrived using set_thread_waiting(). * gendef: Don't special case handling of _cygtls::sig for threads. * gentls_offsets: Use #pragma once in tlsoffsets.h. * ntdll.h: Use #pragma once. * poll.cc: Reflect set_signal_mask() argument reordering. * posix_ipc.cc (ipc_mutex_lock): Use cancelable_wait rather than WFMO. (ipc_cond_timedwait): Set perl-thread signal arrived using set_thread_waiting(). * security.h: Use #pragma once. * signal.cc (abort): Reflect set_signal_mask() argument reordering. (clock_nanosleep): Ditto. Change call to cancelable_wait to properly specify handling of cancel and interrupt. (sigwaitinfo): Remove handling of per-thread event in favor of per-thread signal_arrived. Use cancelable_wait rather than WFSO. * sigproc.cc (signal_arrived): Delete definition. (create_signal_arrived): Ditto. * sigproc.h (signal_arrived): Delete declaration. (set_signal_mask): Avoid defining as a "C" function. Don't conditionally declare. (create_signal_arrived): Delete declaration. * syscalls.cc (rename): Use cygwait() rather than WFSO. * thread.h (fast_mutex::lock): Use cw_infinite rather than LARGE_NULL. * wait.cc (wait4): Ditto. * thread.cc (pthread_mutex::lock): Ditto. (pthread::join): Ditto. (semaphore::_wait): Ditto. (pthread_kill): Remove set_threadkill() accommodation. * tlsoffsets.h: Regenerate.
* * include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.Christopher Faylor2012-07-212-1/+5
|