aboutsummaryrefslogtreecommitdiff
path: root/winsup
AgeCommit message (Collapse)AuthorFilesLines
2012-08-10 Even though MSDN documents these as __cdecl the kernel32.dll libraryEarnie Boyd3-6/+22
exports them as __stdcall. Confirmed with gendef program. * lib/kernel32.def (InterlockedDecrement): Revert the 2012-08-08 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto. * include/winbase.h (InterlockedDecrement): Revert the 2012-08-01 change. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
2012-08-09* DevNotes: Add entry cgf-000014.Christopher Faylor9-67/+153
* 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.
2012-08-08 * lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count sinceEarnie Boyd2-3/+10
we now declare it as __cdecl. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
2012-08-082012-08-08 Kai Tietz <ktietz@redhat.com>Earnie Boyd2-4/+8
* mingwex/gdtoa/gd_qnan.h: Make Nan constants positive valued.
2012-08-08 * include/sys/wait.h (_wait): Define when building newlib.Corinna Vinschen2-1/+9
2012-08-07* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.Christopher Faylor2-2/+5
2012-08-06 * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier()Earnie Boyd2-2/+7
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.
2012-08-06 * mingwex/membarrier.c: New file.Earnie Boyd3-2/+27
* mingwex/Makefile.in (DISTFILES): Add membarrier.c. (REPLACE_OBJS): Add membarrier.o.
2012-08-06 * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead ofEarnie Boyd2-5/+6
creating a function due to multiple definition.
2012-08-06*** empty log message ***Corinna Vinschen1-0/+12
2012-08-06AddChristopher Faylor1-0/+13
2012-08-04 * include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.Earnie Boyd2-2/+6
2012-08-03Add mingwex/tsearch.c to ChangeLogEarnie Boyd1-0/+1
2012-08-03 * include/_mingw.h (threadlocalinfostruct, threadmbinfostruct,Earnie Boyd3-11/+27
*pthreadlocinfo, *pthreadmbcinfo, _locale_tstruct, *_locale_t): Declare.
2012-08-03 * include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd3-1/+9
* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
2012-08-032012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>Earnie Boyd2-0/+26
* include/process.h (_wexec*, _wspawn*): Declare.
2012-08-03 * include/stdio.h (_lock_file, _unlock_file): Declare.Earnie Boyd2-1/+4
2012-08-03 * include/stdio.h (_getws, _putws): Guard with #ifndef __STRICT_ANSI__.Earnie Boyd2-2/+7
(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto. (_wrename, _wremove, _wperror, _wpopen): Ditto.
2012-08-03 * include/wchar.h (_wcstrtoi64): Declare.Earnie Boyd3-4/+12
(_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
2012-08-03 * include/stdlib.h (_strtoi64): Declare.Earnie Boyd2-0/+20
(_strtoi64_l): Ditto. (_strtoui64): Ditto. (_strtoui64_l): Ditto. (_wcstrtoi64): Ditto. (_wcstrtoi64_l): Ditto. (_wcstrtoui64): Ditto. (_wcstrtoui64_l): Ditto.
2012-08-03* exceptions.cc (sigdelayed): Simplify declaration.Christopher Faylor2-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.
2012-08-03* spawn.cc (child_info_spawn::worker): Put back a minor variation of Corinna'sChristopher Faylor2-4/+16
test for detecting a background process when starting a non-cygwin process.
2012-08-03 * faq-using.xml (faq.using.man): Make relevance to whatis explicit.Corinna Vinschen2-2/+8
2012-08-02 * lib/Makefile.in (amvideo.h): Dependencies are not met making this fileEarnie Boyd2-1/+11
implementation incomplete. Do not deliver it. (amaudio.h): Ditto.
2012-08-02 * include/setupapi.h: Correct typos and truncations.Earnie Boyd2-6/+10
2012-08-01 * include/winnt.h (MemoryBarrier): Add definition.Earnie Boyd2-0/+17
2012-08-01 * include/cygwin/socket.h (MSG_BCAST): Define.Corinna Vinschen2-0/+8
(MSG_MCAST): Define.
2012-08-01 * include/winbase.h (InterlockedDecrement): Modify declaration fromEarnie Boyd2-3/+7
LONG WINAPI to LONG __cdecl to match Microsoft documentation. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
2012-08-01 * include/wtsapi32.h (WTSVirtualChannelClose): Add declaration.Earnie Boyd3-1/+61
(WTSVirtualChannelOpen): Ditto. (WTSVirtualchannelOpenEx): Ditto. (WTSVirtualChannelPurgeInput): Ditto. (WTSVirtualChannelPurgeOutput): Ditto. (WTSVirtualChannelQuery): Ditto. (WTSVirtualChannelRead): Ditto. (WTSVirtualChannelWrite): Ditto. * lib/wtsapi32.def (WTSVirtualChannelOpenEx@12): Add import.
2012-08-01 * include/excpt.h (__try1): Define based on _WIN64 definition.Earnie Boyd2-5/+23
(__except1): Ditto.
2012-08-01 * include/winuser.h (tagMENUITEMINFOA): Correct dwItemData definition.Earnie Boyd2-2/+7
(tagMENUITEMINFOW): Ditto.
2012-08-01 * fhandler.h (fhandler_socket::recv_internal): Add bool parameter.Corinna Vinschen3-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.
2012-08-01 * Makefile.in: Semi-revert patch from 2012-07-01, assuming the previousCorinna Vinschen1-9/+2
patch to etc::dir_changed fixes the underlying issue.
2012-08-01 * Makefile.in: Semi-revert patch from 2012-07-01, assuming the previousCorinna Vinschen1-0/+5
patch to etc::dir_changed fixes the underlying issue.
2012-07-31 * path.cc (etc::dir_changed): Revert muto changes since function isCorinna Vinschen2-28/+25
called under lock condition anyway.
2012-07-31 * path.cc (etc::dir_changed): Change `io' to a static NO_COPYCorinna Vinschen3-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.
2012-07-30 * include/_mingw.h: Add __MINGW_VERSION, __MINGW_MAJOR_VERSION,Earnie Boyd4-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.
2012-07-30 * include/inttypes.h: A few items like PRNdPTR and SCNdPTR need 64Earnie Boyd2-11/+30
bitness specified when _WIN64 is defined.
2012-07-30* include/stdint.h: Include _mingw.h for the definition of __int64 when ↵Earnie Boyd2-0/+6
_WIN64 is defined.
2012-07-30* Makefile.common (CFLAGS_COMMON): Add temporary define to work around w32apiChristopher Faylor5-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".
2012-07-30* winlean.h: Add temporary define.Christopher Faylor3-6/+6
* winsup.h: Remove ancient debugging defines.
2012-07-30* cygwait.cc (cancelable_wait): Add some debugging-only output.Christopher Faylor8-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.
2012-07-30Add missing include/sdkddkver.hEarnie Boyd1-0/+141
2012-07-29Doh. Check in missing file from previous submission.Christopher Faylor1-1/+7
2012-07-29* cygtls.cc (_cygtls::reset_signal_arrived): New function.Christopher Faylor5-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.
2012-07-29Add missing file from last checkin.Christopher Faylor1-1/+11
2012-07-29 * include/sdkddkver.h: New file.Earnie Boyd2-0/+7
* include/windows.h: Include sdkddkver.h.
2012-07-29* fhandler_termios.cc (fhandler_termios::line_edit): Use special case '%0c'Christopher Faylor5-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.
2012-07-28 * include/inttypes.h: Add x86_64 target considerations throughout.Corinna Vinschen3-91/+230
Define macros in C++ according to C99 requirements. * include/stdint.h: Ditto.
2012-07-25* signal.cc (clock_nanosleep): Force return on signal rather than lettingChristopher Faylor2-1/+6
cancelable_wait loop on signal.