aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-12-04 18:15:36 +0000
committerChristopher Faylor <me@cgf.cx>2011-12-04 18:15:36 +0000
commit4510afa90d42eec08a2ec91f4203ed126ab998c8 (patch)
tree8e17960bce1bf0676de33f115d967a3ef7e652de
parent8f937028d9b8d387cf35b64d92056241bffabd78 (diff)
downloadnewlib-4510afa90d42eec08a2ec91f4203ed126ab998c8.zip
newlib-4510afa90d42eec08a2ec91f4203ed126ab998c8.tar.gz
newlib-4510afa90d42eec08a2ec91f4203ed126ab998c8.tar.bz2
* sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/sigproc.h30
2 files changed, 19 insertions, 15 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index ba23ea6..c18f292 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2011-12-04 Christopher Faylor <me.cygwin2011@cgf.cx>
+ * sigproc.h (cygWFMO): Move inside "INSIDE_CYGWIN" #ifdef.
+
+2011-12-04 Christopher Faylor <me.cygwin2011@cgf.cx>
+
* exceptions.cc (exception::handle): Drop abbreviation for "exception"
since I never remember what it stands for.
(sig_handle_tty_stop): Remove obsolete call to sig_handle_tty_stop.
diff --git a/winsup/cygwin/sigproc.h b/winsup/cygwin/sigproc.h
index 086466b..2c027a9 100644
--- a/winsup/cygwin/sigproc.h
+++ b/winsup/cygwin/sigproc.h
@@ -59,21 +59,6 @@ struct sigpacket
};
extern HANDLE signal_arrived;
-
-static inline
-DWORD cygWFMO (DWORD n, DWORD howlong, ...)
-{
- va_list ap;
- va_start (ap, howlong);
- HANDLE w4[n + 2];
- va_start (ap, howlong);
- unsigned i;
- for (i = 0; i < n; i++)
- w4[i] = va_arg (ap, HANDLE);
- w4[i++] = signal_arrived;
- w4[i++] = pthread::get_cancel_event ();
- return WaitForMultipleObjects (n, w4, FALSE, howlong);
-}
extern HANDLE sigCONT;
void __stdcall sig_dispatch_pending (bool fast = false);
@@ -95,6 +80,21 @@ void __stdcall proc_terminate ();
void __stdcall sigproc_init ();
#ifdef __INSIDE_CYGWIN__
void __stdcall sigproc_terminate (enum exit_states);
+
+static inline
+DWORD cygWFMO (DWORD n, DWORD howlong, ...)
+{
+ va_list ap;
+ va_start (ap, howlong);
+ HANDLE w4[n + 2];
+ va_start (ap, howlong);
+ unsigned i;
+ for (i = 0; i < n; i++)
+ w4[i] = va_arg (ap, HANDLE);
+ w4[i++] = signal_arrived;
+ w4[i++] = pthread::get_cancel_event ();
+ return WaitForMultipleObjects (n, w4, FALSE, howlong);
+}
#endif
bool __stdcall pid_exists (pid_t) __attribute__ ((regparm(1)));
int __stdcall sig_send (_pinfo *, siginfo_t&, class _cygtls *tls = NULL) __attribute__ ((regparm (3)));