summaryrefslogtreecommitdiffstats
path: root/winsup
Commit message (Collapse)AuthorAgeFilesLines
* * gmon.c (_mcleanup): Fix scope bug when using gmon_out array.Corinna Vinschen2012-08-142-4/+8
|
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output inCorinna Vinschen2012-08-142-1/+6
| | | | api_fatal call.
* * errno.cc (errmap): Keep sorted.Christopher Faylor2012-08-142-1/+5
|
* * mount.cc (fs_names): Add missing ReFS entry. Change comment.Corinna Vinschen2012-08-143-1/+10
| | | | * mount.h (enum fs_info_type): Add comment.
* * errno.cc (errmap): Map ERROR_SXS_CANT_GEN_ACTCTX to ELIBBAD.Christopher Faylor2012-08-132-0/+5
|
* Even though MSDN documents these as __cdecl the kernel32.dll libraryEarnie Boyd2012-08-103-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.
* * DevNotes: Add entry cgf-000014.Christopher Faylor2012-08-099-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.
* * lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count sinceEarnie Boyd2012-08-082-3/+10
| | | | | | we now declare it as __cdecl. (InterlockedIncrement): Ditto. (InterlockedExchange): Ditto.
* 2012-08-08 Kai Tietz <ktietz@redhat.com>Earnie Boyd2012-08-082-4/+8
| | | | * mingwex/gdtoa/gd_qnan.h: Make Nan constants positive valued.
* * include/sys/wait.h (_wait): Define when building newlib.Corinna Vinschen2012-08-082-1/+9
|
* * signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.Christopher Faylor2012-08-072-2/+5
|
* * include/winnt.h (MemoryBarrier): Define to __mingworg_MemoryBarrier()Earnie Boyd2012-08-062-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.
* * mingwex/membarrier.c: New file.Earnie Boyd2012-08-063-2/+27
| | | | | * mingwex/Makefile.in (DISTFILES): Add membarrier.c. (REPLACE_OBJS): Add membarrier.o.
* * include/winnt.h (MemoryBarrier): Use __sync_synchronize instead ofEarnie Boyd2012-08-062-5/+6
| | | | creating a function due to multiple definition.
* *** empty log message ***Corinna Vinschen2012-08-061-0/+12
|
* AddChristopher Faylor2012-08-061-0/+13
|
* * include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.Earnie Boyd2012-08-042-2/+6
|
* 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
|
* * 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.
* * 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.
* * 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
|