2134b7a5b0* errno.cc (errmap): Map ERROR_SXS_CANT_GEN_ACTCTX to ELIBBAD.
Christopher Faylor
2012-08-13 19:33:17 +0000
de522be6dbAdd support for 64-bit ARM architecture: AArch64
Nick Clifton
2012-08-13 14:52:48 +0000
1a2ec5c32finclude/opcode/ * mips.h (mips_opcode): Add the exclusions field. (OPCODE_IS_MEMBER): Remove macro. (cpu_is_member): New inline function. (opcode_is_member): Likewise.
Maciej W. Rozycki
2012-08-13 14:26:10 +0000
b2bde18ba5* libc/stdlib/btowc.c (btowc): Cast to avoid compiler warning. * libc/search/hash_buf.c (__get_buf): Initialize local vars to avoid compiler warning. * libc/stdio/fgets.c (_fgets_r): Ditto. * libc/time/strftime.c (strftime): Ditto.
Corinna Vinschen
2012-08-10 15:21:57 +0000
76c4e21b49Even though MSDN documents these as __cdecl the kernel32.dll library exports them as __stdcall. Confirmed with gendef program.
Earnie Boyd
2012-08-10 13:58:49 +0000
6471beb3d4Fix date
Corinna Vinschen
2012-08-10 11:49:19 +0000
c9ace3130c* libc/stdio/vfwprintf.c (_VFWPRINTF_R): Fix guard around state to allow usage in !FLOATING_POINT && _WANT_IO_C99_FORMATS case.
Corinna Vinschen
2012-08-10 09:37:32 +0000
52d2371da5* DevNotes: Add entry cgf-000014. * cygheap.cc (tls_sentry): Move here, rename from 'sentry' in cygtls.cc (tls_sentry::lock): Ditto. (nthreads): Move from cygtls.cc (THREADLIST_CHUNK): Ditto. (cygheap_init): Call init_tls_list(). (init_cygheap::init_tls_list): Define new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. Semi-resurrect from _cygtls::find_tls. * cygheap.h (init_cygheap::init_tls_list): Declare new function. (init_cygheap::add_tls): Ditto. (init_cygheap::remove_tls): Ditto. (init_cygheap::find_tls): Ditto. * cygtls.cc (sentry): Delete. (sentry::lock): Ditto. (nthreads): Ditto. (THREADLIST_CHUNK): Ditto. (_cygtls::init): Delete definition. (_cygtls::init_thread): Call cygheap->add_tls() to add thread to global list. (_cygtls::remove): cygheap->remove_tls() to remove thread from global list. * cygtls.h (_cygtls::init): Delete declaration. * dcrt0.cc (dll_crt0_0): Delete call to _cygtls::init(). * exceptions.cc (sigpacket::process): When no thread is specified, try to find one via cygheap->find_tls.
Christopher Faylor
2012-08-09 19:58:53 +0000
cc02df1286* lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count since we now declare it as __cdecl. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
Earnie Boyd
2012-08-08 20:28:26 +0000
b35bb085d82012-08-08 Kai Tietz <ktietz@redhat.com>
Earnie Boyd
2012-08-08 20:27:11 +0000
49264ad7dd* libc/posix/engine.c(dissect): Guard diagnostic pragma for right versions of GCC only. * libc/string/strcasestr.c: Ditto.
Corinna Vinschen
2012-08-08 14:05:54 +0000
1f232abc89Throughout, run newlib with -Wall -Werror option and fix bugs and compiler warnings found this way.
Corinna Vinschen
2012-08-08 11:04:18 +0000
34a4d873ad* include/sys/wait.h (_wait): Define when building newlib.
Corinna Vinschen
2012-08-08 09:39:36 +0000
f79b8c456f* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.
Christopher Faylor
2012-08-07 04:25:05 +0000
f29261e662* include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier() which is in libmingwex.a. MODIFIED FROM: Use __sync_synchronize instead of creating a function due to multiple definition. NOTE: Not using __sync_synchronize to allow applications to mix-n-match C libraries from different vendors.
Earnie Boyd
2012-08-06 18:12:53 +0000
705d9e463c* include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of creating a function due to multiple definition.
Earnie Boyd
2012-08-06 15:49:39 +0000
45cb627406* exceptions.cc (sigdelayed): Simplify declaration. (_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.
Christopher Faylor
2012-08-03 15:38:59 +0000
4485a26eff* spawn.cc (child_info_spawn::worker): Put back a minor variation of Corinna's test for detecting a background process when starting a non-cygwin process.
Christopher Faylor
2012-08-03 14:48:59 +0000
9da0bce9ef* faq-using.xml (faq.using.man): Make relevance to whatis explicit.
Corinna Vinschen
2012-08-03 10:39:45 +0000
da73a9fcb7* elf/m68hc11.h: #define E_M68HC11_NO_BANK_WARNING 0x000000200
Sean Keys
2012-08-02 20:10:10 +0000
df6b83d911* m68hc11.h: #define E_M68HC11_NO_BANK_WARNING 0x000000200
Sean Keys
2012-08-02 20:08:54 +0000
b766e1bfdf* lib/Makefile.in (amvideo.h): Dependencies are not met making this file implementation incomplete. Do not deliver it. (amaudio.h): Ditto.
Earnie Boyd
2012-08-02 01:53:55 +0000
8c582a2053* include/winbase.h (InterlockedDecrement): Modify declaration from LONG WINAPI to LONG __cdecl to match Microsoft documentation. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
Earnie Boyd
2012-08-01 17:38:51 +0000
e665b0aab2* fhandler.h (fhandler_socket::recv_internal): Add bool parameter. 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.
Corinna Vinschen
2012-08-01 09:00:53 +0000
01d9574ddd* Makefile.in: Semi-revert patch from 2012-07-01, assuming the previous patch to etc::dir_changed fixes the underlying issue.
Corinna Vinschen
2012-08-01 08:46:49 +0000
02a2590f08* Makefile.in: Semi-revert patch from 2012-07-01, assuming the previous patch to etc::dir_changed fixes the underlying issue.
Corinna Vinschen
2012-08-01 08:17:16 +0000
f4c77298deinclude/opcode/ * 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.
Maciej W. Rozycki
2012-07-31 21:38:54 +0000
bc025aada5* path.cc (etc::dir_changed): Revert muto changes since function is called under lock condition anyway.
Corinna Vinschen
2012-07-31 19:56:32 +0000
68e41cfcf4* path.cc (etc::dir_changed): Change `io' to a static NO_COPY 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.
Corinna Vinschen
2012-07-31 19:36:16 +0000
217618d3d6* libc/sys/sysnecv850/crt0.S (_start): Use v850e-specific start up code for v850e2 and v850e2v3 too.
Kevin Buettner
2012-07-30 23:03:47 +0000
49e7643e9a2012-07-05 Sean Keys <skeys@ipdatasys.com>
Sean Keys
2012-07-30 21:44:51 +0000
67b37a26aa* include/_mingw.h: Add __MINGW_VERSION, __MINGW_MAJOR_VERSION, __MINGW_MINOR_VERSION and __MINGW_PATCHLEVEL deprecating the __MINGW32_* versions of the macros. * configure.in: Use __MINGW_VERSION instead of __MINGW32_VERSION. * configure: Ditto.
Earnie Boyd
2012-07-30 14:49:16 +0000
31938000a5* include/inttypes.h: A few items like PRNdPTR and SCNdPTR need 64 bitness specified when _WIN64 is defined.
Earnie Boyd
2012-07-30 14:31:16 +0000
6e5de03578* include/stdint.h: Include _mingw.h for the definition of __int64 when _WIN64 is defined.
Earnie Boyd
2012-07-30 14:22:28 +0000
7d8b0c8447* Makefile.common (CFLAGS_COMMON): Add temporary define to work around w32api problem.
Christopher Faylor
2012-07-30 04:43:22 +0000
413ce08289* winlean.h: Add temporary define. * winsup.h: Remove ancient debugging defines.
Christopher Faylor
2012-07-30 04:26:05 +0000
d239805457* cygwait.cc (cancelable_wait): Add some debugging-only output. * 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.
Christopher Faylor
2012-07-30 03:44:40 +0000
a8344a0181Doh. Check in missing file from previous submission.
Christopher Faylor
2012-07-29 21:44:03 +0000
dd06381996* cygtls.cc (_cygtls::reset_signal_arrived): New function. (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.
Christopher Faylor
2012-07-29 21:43:29 +0000
ab6596266fAdd missing file from last checkin.
Christopher Faylor
2012-07-29 21:42:10 +0000
c5b9032e48* include/sdkddkver.h: New file. * include/windows.h: Include sdkddkver.h.
Earnie Boyd
2012-07-29 20:52:41 +0000
7ea2ecec23* fhandler_termios.cc (fhandler_termios::line_edit): Use special case '%0c' 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.
Christopher Faylor
2012-07-29 19:18:05 +0000
a2b7f56971* include/inttypes.h: Add x86_64 target considerations throughout. Define macros in C++ according to C99 requirements. * include/stdint.h: Ditto.
Corinna Vinschen
2012-07-28 14:21:34 +0000
7ae7345dd6Fix attributation of PR 13135 patch.
Nick Clifton
2012-07-26 14:05:37 +0000
8f748bdaca* signal.cc (clock_nanosleep): Force return on signal rather than letting cancelable_wait loop on signal.
Christopher Faylor
2012-07-25 22:21:17 +0000
a654829ade* syscalls.cc (enum bin_status): Add dir_not_empty. (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.
Corinna Vinschen
2012-07-25 12:32:37 +0000
67d71dbf10* wincap.cc (wincapc::init): Drop memset call since it can result in a race condition. Drop all considerations for pre-Windows 2000 systems since Cygwin won't start on them anyway.
Corinna Vinschen
2012-07-24 13:56:14 +0000
5f3eab86a6PR binutils/13135 * 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.
Nick Clifton
2012-07-24 12:56:47 +0000
44aa2292b7Change "set_thread_waiting" to "set_signal_arrived" throughout.
Christopher Faylor
2012-07-23 04:36:48 +0000
962f9a2ccc* DevNotes: Add entry cgf-000013. * 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.
Christopher Faylor
2012-07-21 22:58:20 +0000
b8a84b73d7* include/cygwin/version.h (CYGWIN_VERSION_DLL_MINOR): Bump to 17.
Christopher Faylor
2012-07-21 17:13:42 +0000
0cf8865cf0readdir: drop bogus code
Eric Blake
2012-07-20 16:55:19 +0000
f20f7e36adForced checkin to fix date
Corinna Vinschen
2012-07-20 09:45:34 +0000
1692ae3a30* pathnames.sgml (pathnames-intro): Remove paragraph on UNC paths. Try to be clearer on POSIX vs. Win32 paths. (unc-paths): New section. (cygdrive): Fix a few SGML qualifiers. * setup-net.sgml: Move ntsec section from here... * using.sgml: ..to here.
Corinna Vinschen
2012-07-20 09:23:44 +0000
847a5f899b* woutsup.h: Just include winlean.h.
Corinna Vinschen
2012-07-19 17:56:46 +0000
03b7882aa0* faq-programming.xml (faq.programming.unix-gui): Update to reflect the availability of X11 toolkits on Cygwin.
Yaakov Selkowitz
2012-07-18 02:11:04 +0000
6902b88b0b* winlean.h: Make sure certain Windows macros are undefined again. Add comment to explain why. * winsup.h: Include winlean.h from C sources as well. * libc/minires-os-if.c: Drop including ntdef.h.
Corinna Vinschen
2012-07-12 11:27:28 +0000
568e72f561* pseudo-reloc.cc: Drop including wchar.h. (__report_error): Define module as WCHAR. * advapi.cc: Drop including wchar.h. * kernel32.cc: Ditto.
Corinna Vinschen
2012-07-12 10:33:54 +0000
6e1e3bb8e5* Makefile.in (cygcheck.exe): Link against psapi.dll. * bloda.cc: Change include section to work with Mingw64 headers. Include psapi.h. Use SystemProcessInformation instead of SystemProcessesAndThreadsInformation throughout and add define for w32api headers. Ditto for PSYSTEM_PROCESS_INFORMATION vs. PSYSTEM_PROCESSES. (system_module_list): New type to replace SYSTEM_MODULE_INFORMATION. Change usage throughout accordingly. (get_module_list): Fetch module list using PSAPI functions EnumDeviceDrivers and GetDeviceDriverBaseNameA. * cygcheck.cc (max): Define as __max if not defined already. (alloca): Only define if not defined already. (handle_unique_object_name): Use explicit sharing flags rather than FILE_SHARE_VALID_FLAGS which officially is only available in DDK headers. (PRODUCT_ULTIMATE_E): Only define if not defined already. * dump_setup.cc: Change include section to work with Mingw64 headers. (NtQueryAttributesFile): Drop NTOSAPI aka DECLSPEC_IMPORT. * strace.cc: Change include section to work with Mingw64 headers. (alloca): Only define if not defined already.
Corinna Vinschen
2012-07-11 16:41:51 +0000
7c4626ed08* passwd.cc (getpass): Make check for closed stream more reliable. Check if setting tty attributes worked and only revert to old state if so.
Corinna Vinschen
2012-07-09 12:57:03 +0000
821c8b9aac* libc/stdio/fileno.c (fileno): Check if f is a valid stream. If not, return -1 and set errno to EBADF per POSIX.
Corinna Vinschen
2012-07-09 12:13:16 +0000
a9cd97c8e2* Makefile.in: Change mingw_lib (temporarily?) back to w32api_lib.
Christopher Faylor
2012-07-08 00:51:45 +0000
9cfc9511cd* cygpath.cc: Change including headers to allow building against Mingw64 headers. Include ntdef.h and ntdll.h rather than ddk headers. Define _WIN32_WINNT and WINVER as 0x0602. (RtlEqualUnicodePathPrefix): Drop definition. Pulled in from ntdll.h now. (get_device_name): s/Zw/Nt. * dumper.cc: Include sys/param.h (dumper::dump_memory_region): Use MIN rather than min. * locale.cc: Include stdlib.h. Define _WIN32_WINNT and WINVER as 0x0602. * ps.cc: Include ntdef.h and ntdll.h rather than ddk headers. * regtool.cc (regDeleteKeyEx): Drop WINADVAPI qualifier.
Corinna Vinschen
2012-07-06 14:52:33 +0000