Christopher Faylor
95a94931c8
* pinfo.cc (_pinfo::exists): Don't consider a process with no state to exist.
2012-08-23 14:45:52 +00:00
Christopher Faylor
0b1545eb3a
* net.cc (get_adapters_addresses): Drop FIXME part of comment.
2012-08-21 14:41:57 +00:00
Christopher Faylor
39d0171500
* DevNotes: Add entry cgf-000016.
...
* cygtls.h (_cygtls::push): Inline.
(_cygtls::interrupt_now): Change signal number argument to siginfo_t argument.
(_cygtls::interrupt_setup): Ditto.
(_cygtls::set_siginfo): Delete declaration.
(_cygtls::reset_signal_arrived): Don't reset signal_arrived signal. Just reset
flag.
* exceptions.cc (_cygtls::interrupt_now): Reflect argument changes. Pass si to
interrupt_setup.
(_cygtls::interrupt_setup): Reflect argument changes. Fill out tls infodata
here using passed-in si. Use si.si_signo instead of sig.
(sigpacket::setup_handler): Move this function into sigpacket class. Use si
field from the class as appropriate.
(sigpacket::process): Don't call tls->set_siginfo here since setup_handler
could fail. Eliminate now-unneeded sig argument.
* sigproc.h (sigpacket::setup_handler): Move setup_handler to this class.
2012-08-17 17:29:21 +00:00
Christopher Faylor
23338be7f5
* exceptions.cc (sig_handle_tty_stop): Clear tls sig field.
...
(sigpacket::process): When continuing, set tls->sig before arming
signal_arrived.
2012-08-17 15:56:05 +00:00
Corinna Vinschen
74d1d0ee80
* fhandler_clipboard.cc (fhandler_dev_clipboard::read): Use
...
read-ahead buffer for reading Windows clipboard if caller's
buffer is too small for complete characters.
* include/limits.h: Remove outdated TODO comment.
2012-08-17 09:23:34 +00:00
Christopher Faylor
46f5dd5958
whitespace cleanup
2012-08-16 23:34:45 +00:00
Christopher Faylor
00caa48b91
* cygtls.cc (_cygtls::operator HANDLE): Reverse '?' test stupidity.
2012-08-16 19:24:19 +00:00
Christopher Faylor
d01efdbe6e
* cygheap.cc (init_cygheap::find_tls): Don't consider unitialized threads.
...
* cygtls.cc (_cygtls::operator HANDLE): Return NULL when tid is not set.
* exceptions.cc (setup_handler): Don't try to suspend a thread if it has no
handle.
2012-08-16 17:11:41 +00:00
Christopher Faylor
4e754267ed
fix typo
2012-08-15 19:43:59 +00:00
Christopher Faylor
806e732c01
Rename cancelable_wait -> cygwait throughout.
...
* DevNotes: Add entry cgf-000015.
* cygwait.h (cygwait): Don't allow an optional PLARGE_INTERGER argument.
2012-08-15 19:07:42 +00:00
Christopher Faylor
879f3ad5ee
* cygtls.h (_cygtls::create_signal_arrived): New function.
...
(_cygtls::set_signal_arrived): Lock creation of signal_arrived.
* cygwait.cc (cancelable_wait): Ignore signal_arrived event if _my_tls 'sig'
element does not exist.
* exceptions.cc (_cygtls::interrupt_setup): Create signal_arrived if recipient
thread has not created it.
2012-08-15 18:50:44 +00:00
Christopher Faylor
588b40e260
* gendef: Tighten up whitespace detection.
2012-08-15 17:29:58 +00:00
Christopher Faylor
0427598641
* gendef: Delete unneeded read from <IN> which ate an arbitrary line from
...
cygwin.din.
2012-08-15 17:07:47 +00:00
Christopher Faylor
d57a4725b1
* exceptions.cc (sigdelayed): Move declaration to sigproc.h.
...
* sigproc.h (sigdelayed): Make symbol globally available.
* gendef (sigdelayed): Specifically zero incyg and stacklock.
* signal.cc (sigwaitinfo): Lock _my_tls and try harder to clean up signal
information.
2012-08-15 16:35:00 +00:00
Christopher Faylor
0123506d2d
* pinfo.cc (_pinfo::exists): Don't consider an execed process to exist.
2012-08-15 14:11:35 +00:00
Corinna Vinschen
25a520c260
* gmon.c (_mcleanup): Fix scope bug when using gmon_out array.
2012-08-14 19:38:43 +00:00
Christopher Faylor
0587c5ef4f
* errno.cc (errmap): Keep sorted.
2012-08-14 18:38:22 +00:00
Corinna Vinschen
04ea60440a
* thread.cc (semaphore::_fixup_after_fork): Fix Win32 error output in
...
api_fatal call.
2012-08-14 15:05:13 +00:00
Christopher Faylor
fee05a2380
* errno.cc (errmap): Keep sorted.
2012-08-14 14:56:19 +00:00
Corinna Vinschen
3cef8ecc61
* mount.cc (fs_names): Add missing ReFS entry. Change comment.
...
* mount.h (enum fs_info_type): Add comment.
2012-08-14 09:49:25 +00:00
Christopher Faylor
2134b7a5b0
* errno.cc (errmap): Map ERROR_SXS_CANT_GEN_ACTCTX to ELIBBAD.
2012-08-13 19:33:17 +00:00
Earnie Boyd
76c4e21b49
Even though MSDN documents these as __cdecl the kernel32.dll library
...
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-10 13:58:49 +00:00
Christopher Faylor
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.
2012-08-09 19:58:53 +00:00
Earnie Boyd
cc02df1286
* lib/kernel32.def (InterlockedDecrement): Remove the @BYTE count since
...
we now declare it as __cdecl.
(InterlockedIncrement): Ditto.
(InterlockedExchange): Ditto.
2012-08-08 20:28:26 +00:00
Earnie Boyd
b35bb085d8
2012-08-08 Kai Tietz <ktietz@redhat.com>
...
* mingwex/gdtoa/gd_qnan.h: Make Nan constants positive valued.
2012-08-08 20:27:11 +00:00
Corinna Vinschen
34a4d873ad
* include/sys/wait.h (_wait): Define when building newlib.
2012-08-08 09:39:36 +00:00
Christopher Faylor
f79b8c456f
* signal.cc (sigwaitinfo): Change cw_sig to the correct cw_sig_eintr.
2012-08-07 04:25:05 +00:00
Earnie Boyd
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.
2012-08-06 18:12:53 +00:00
Earnie Boyd
525800e855
* mingwex/membarrier.c: New file.
...
* mingwex/Makefile.in (DISTFILES): Add membarrier.c.
(REPLACE_OBJS): Add membarrier.o.
2012-08-06 18:05:53 +00:00
Earnie Boyd
705d9e463c
* include/winnt.h (MemoryBarrier): Use __sync_synchronize instead of
...
creating a function due to multiple definition.
2012-08-06 15:49:39 +00:00
Corinna Vinschen
b875960da7
*** empty log message ***
2012-08-06 09:09:18 +00:00
Christopher Faylor
fedd27a0af
Add
2012-08-06 03:42:07 +00:00
Earnie Boyd
189dc15b84
* include/winver.h (VerQueryValue[AW]): Correct declaration per MSDN.
2012-08-04 18:36:18 +00:00
Earnie Boyd
42377c9621
Add mingwex/tsearch.c to ChangeLog
2012-08-03 20:11:43 +00:00
Earnie Boyd
a451d291c5
* include/_mingw.h (threadlocalinfostruct, threadmbinfostruct,
...
*pthreadlocinfo, *pthreadmbcinfo, _locale_tstruct, *_locale_t): Declare.
2012-08-03 20:06:27 +00:00
Earnie Boyd
eb9dc9d068
* include/limits.h (PATH_MAX): Guard with #ifndef __STRICT_ANSI__.
...
* include/sys/param.h (MAXPATHLEN): Make sure PATH_MAX is defined.
2012-08-03 19:16:38 +00:00
Earnie Boyd
d8dbfe9518
2012-08-02 Ivan Maidanski <ivmai@users.sourceforge.net>
...
* include/process.h (_wexec*, _wspawn*): Declare.
2012-08-03 18:58:26 +00:00
Earnie Boyd
0e44ac092d
* include/stdio.h (_lock_file, _unlock_file): Declare.
2012-08-03 17:59:05 +00:00
Earnie Boyd
e5ac3c1375
* include/stdio.h (_getws, _putws): Guard with #ifndef __STRICT_ANSI__.
...
(_wfdopen, _wfopen, _wfreopen, _wfsopen, _wtmpnam, _wtempnam): Ditto.
(_wrename, _wremove, _wperror, _wpopen): Ditto.
2012-08-03 16:18:27 +00:00
Earnie Boyd
a8d0071db2
* include/wchar.h (_wcstrtoi64): Declare.
...
(_wcstrtoi64_l): Ditto.
(_wcstrtoui64): Ditto.
(_wcstrtoui64_l): Ditto.
2012-08-03 16:06:45 +00:00
Earnie Boyd
dc8a67cbc3
* include/stdlib.h (_strtoi64): Declare.
...
(_strtoi64_l): Ditto.
(_strtoui64): Ditto.
(_strtoui64_l): Ditto.
(_wcstrtoi64): Ditto.
(_wcstrtoi64_l): Ditto.
(_wcstrtoui64): Ditto.
(_wcstrtoui64_l): Ditto.
2012-08-03 15:51:29 +00:00
Christopher Faylor
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.
2012-08-03 15:38:59 +00:00
Christopher Faylor
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.
2012-08-03 14:48:59 +00:00
Corinna Vinschen
9da0bce9ef
* faq-using.xml (faq.using.man): Make relevance to whatis explicit.
2012-08-03 10:39:45 +00:00
Earnie Boyd
b766e1bfdf
* lib/Makefile.in (amvideo.h): Dependencies are not met making this file
...
implementation incomplete. Do not deliver it.
(amaudio.h): Ditto.
2012-08-02 01:53:55 +00:00
Earnie Boyd
a2e6f7e2ef
* include/setupapi.h: Correct typos and truncations.
2012-08-02 01:17:04 +00:00
Earnie Boyd
47bc176b42
* include/winnt.h (MemoryBarrier): Add definition.
2012-08-01 19:17:37 +00:00
Corinna Vinschen
458e15e7d7
* include/cygwin/socket.h (MSG_BCAST): Define.
...
(MSG_MCAST): Define.
2012-08-01 18:56:45 +00:00
Earnie Boyd
8c582a2053
* include/winbase.h (InterlockedDecrement): Modify declaration from
...
LONG WINAPI to LONG __cdecl to match Microsoft documentation.
(InterlockedIncrement): Ditto.
(InterlockedExchange): Ditto.
2012-08-01 17:38:51 +00:00
Earnie Boyd
30ea43437c
* include/wtsapi32.h (WTSVirtualChannelClose): Add declaration.
...
(WTSVirtualChannelOpen): Ditto.
(WTSVirtualchannelOpenEx): Ditto.
(WTSVirtualChannelPurgeInput): Ditto.
(WTSVirtualChannelPurgeOutput): Ditto.
(WTSVirtualChannelQuery): Ditto.
(WTSVirtualChannelRead): Ditto.
(WTSVirtualChannelWrite): Ditto.
* lib/wtsapi32.def (WTSVirtualChannelOpenEx@12): Add import.
2012-08-01 17:25:34 +00:00