Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-02-15 00:31:23 +0300
committerChristopher Faylor <me@cgf.cx>2002-02-15 00:31:23 +0300
commit3d4565208313226900b47c9789d47301ae5c70df (patch)
tree39fd76ba803f64988e5f6d4d535ccfa6c0b84bf5
parent907dc7d0c9f64d95b6d4da91dab6601d0e6054ec (diff)
* include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
* external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/external.cc5
-rw-r--r--winsup/cygwin/include/sys/cygwin.h1
3 files changed, 11 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 86d8583fb..8224c9d9c 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2002-02-14 Christopher Faylor <cgf@redhat.com>
+ * include/sys/cygwin.h (cygwin_getinfo_types): New CW_STRACE_ACTIVE.
+ * external.cc (cygwin_internal): Handle CW_STRACE_ACTIVE.
+
+2002-02-14 Christopher Faylor <cgf@redhat.com>
+
* exceptions.cc (unused_sig_wrapper): Eliminate unused parameter to
asm.
* external.cc (cygwin_internal): Change CW_STRACE_ON to
diff --git a/winsup/cygwin/external.cc b/winsup/cygwin/external.cc
index 389255939..06f131f24 100644
--- a/winsup/cygwin/external.cc
+++ b/winsup/cygwin/external.cc
@@ -222,6 +222,11 @@ cygwin_internal (cygwin_getinfo_types t, ...)
}
}
+ case CW_STRACE_ACTIVE:
+ {
+ return strace.active;
+ }
+
case CW_CYGWIN_PID_TO_WINPID:
{
pinfo p (va_arg (arg, pid_t));
diff --git a/winsup/cygwin/include/sys/cygwin.h b/winsup/cygwin/include/sys/cygwin.h
index b8beaa67d..de3b3d4ea 100644
--- a/winsup/cygwin/include/sys/cygwin.h
+++ b/winsup/cygwin/include/sys/cygwin.h
@@ -68,6 +68,7 @@ typedef enum
CW_SET_CYGWIN_REGISTRY_NAME,
CW_GET_CYGWIN_REGISTRY_NAME,
CW_STRACE_TOGGLE,
+ CW_STRACE_ACTIVE,
CW_CYGWIN_PID_TO_WINPID
} cygwin_getinfo_types;