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:
authorYaakov Selkowitz <yselkowi@redhat.com>2011-04-01 13:00:21 +0400
committerYaakov Selkowitz <yselkowi@redhat.com>2011-04-01 13:00:21 +0400
commit9ca65531e0ed9916b9fd94c8b9fd9a41a0559d6a (patch)
tree798e9a868d82eac30953a6105c15ca1b0fb2c0bc /winsup/cygwin/fhandler_process.cc
parent40afcae3565fc6dee9452bf0d7c0ae64c27208d8 (diff)
* fhandler_proc.cc (format_proc_loadavg): Add running/total
processes as fourth component of output. * fhandler_process.cc (get_process_state): Make non-static. Add FIXME about generating an 'O' flag.
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 526cd3322..80ca6573f 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -79,8 +79,7 @@ static const virt_tab_t process_tab[] =
static const int PROCESS_LINK_COUNT =
(sizeof (process_tab) / sizeof (virt_tab_t)) - 1;
-
-static int get_process_state (DWORD dwProcessId);
+int get_process_state (DWORD dwProcessId);
static bool get_mem_values (DWORD dwProcessId, unsigned long *vmsize,
unsigned long *vmrss, unsigned long *vmtext,
unsigned long *vmdata, unsigned long *vmlib,
@@ -928,7 +927,7 @@ format_process_mounts (void *data, char *&destbuf)
return len;
}
-static int
+int
get_process_state (DWORD dwProcessId)
{
/*
@@ -975,6 +974,7 @@ get_process_state (DWORD dwProcessId)
state = 'S';
for (unsigned i = 0; i < sp->ThreadCount; i++)
{
+ /* FIXME: at some point we should consider generating 'O' */
if (st->State == StateRunning ||
st->State == StateReady)
{